Szerző Téma: pawno hiba  (Megtekintve 1634 alkalommal)

pawno hiba
« Dátum: 2012. Október 13. - 08:48:00 »
0 Show voters
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
#endif
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
cash=CreatePickup(1239,1,423.4611,2536.5435,16.1484);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cash)
    {
    GameTextForPlayer(playerid,\"~r~ /enter ~y~ to enter this building\",3000,1);
    }
return 1;
}
 
if (strcmp(\"/enter\", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,423.4611,2536.5435,16.1484))
       {
      SetPlayerPos(playerid,410.5,2512.6999511719,-41.400001525879);
      return 1;
   }
//other enter commands go here if(player......
if (strcmp (\"/ exit\", cmdtext, igaz, 6) == 0)
{
if (IsPlayerInRangeOfPoint (playerid, 10,388.8720,173.8050,1008.3828))
       {
      SetPlayerPos (playerid, 1480,9829, -1769.9470,18.7958);
      return 1;
   }
}

 
és erre ezt írja:
 
F:\\sampe\\enter.pwn(13) : error 017: undefined symbol \"cash\"
F:\\sampe\\enter.pwn(19) : error 017: undefined symbol \"cash\"
F:\\sampe\\enter.pwn(27) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(29) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(32) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(36) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(38) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(41) : error 010: invalid function or declaration
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
8 Errors.

 
A helpte elõre köszönöm!

Nem elérhető doboka98

  • 1002
    • Profil megtekintése
pawno hiba
« Válasz #1 Dátum: 2012. Október 13. - 09:06:04 »
0 Show voters
Mód elejére:
 
new cash;

pawno hiba
« Válasz #2 Dátum: 2012. Október 13. - 09:20:02 »
0 Show voters
valamivel jobb:
 
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
new cash;
#include <a_samp>
#if defined FILTERSCRIPT
#endif
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
cash=CreatePickup(1239,1,423.4611,2536.5435,16.1484);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cash)
    {
    GameTextForPlayer(playerid,\"~r~ /enter ~y~ to enter this building\",3000,1);
    }
return 1;
}
 
if (strcmp(\"/enter\", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,423.4611,2536.5435,16.1484))
       {
      SetPlayerPos(playerid,410.5,2512.6999511719,-41.400001525879);
      return 1;
   }
//other enter commands go here if(player......
if (strcmp (\"/ exit\", cmdtext, igaz, 6) == 0)
{
if (IsPlayerInRangeOfPoint (playerid, 10,388.8720,173.8050,1008.3828))
       {
      SetPlayerPos (playerid, 1480,9829, -1769.9470,18.7958);
      return 1;
   }
}

 

F:\\sampe\\enter.pwn(28) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(30) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(33) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(37) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(39) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(42) : error 010: invalid function or declaration
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
6 Errors.

Nem elérhető Pedró

  • 3341
  • 2014 © Az év Szkriptere
    • Profil megtekintése
pawno hiba
« Válasz #3 Dátum: 2012. Október 13. - 09:33:11 »
+1 Show voters
Idézetet írta: Dukma123 date=1350112802\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"28519\" data-ipsquote-contentclass=\"forums_Topic
valamivel jobb:
 
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
new cash;
#include <a_samp>
#if defined FILTERSCRIPT
#endif
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
cash=CreatePickup(1239,1,423.4611,2536.5435,16.1484);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cash)
    {
    GameTextForPlayer(playerid,\"~r~ /enter ~y~ to enter this building\",3000,1);
    }
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strcmp(\"/enter\", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,423.4611,2536.5435,16.1484))
       {
      SetPlayerPos(playerid,410.5,2512.6999511719,-41.400001525879);
      return 1;
   }
//other enter commands go here if(player......
if (strcmp (\"/ exit\", cmdtext, igaz, 6) == 0)
{
if (IsPlayerInRangeOfPoint (playerid, 10,388.8720,173.8050,1008.3828))
       {
      SetPlayerPos (playerid, 1480,9829, -1769.9470,18.7958);
      return 1;
   }
}
        return 0;
}

 


pawno hiba
« Válasz #4 Dátum: 2012. Október 13. - 09:59:45 »
0 Show voters
ide jutottam de valamért nem engedi bezárni:
Kód: (pawn) [Kijelölés]
F:\\sampe\\enter.pwn(40) : warning 202: number of arguments does not match definition
F:\\sampe\\enter.pwn(43) : error 030: compound statement not closed at the end of file (started at line 38)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
 
1 Error.


// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
new cash;
#include <a_samp>
#if defined FILTERSCRIPT
#endif
public OnGameModeInit()
{
        // Don\'t use these lines if it\'s a filterscript
        cash=CreatePickup(1239,1,423.4611,2536.5435,16.1484);
        return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
        if(pickupid == cash)
            {
            GameTextForPlayer(playerid,\"~r~ /enter ~y~ to enter this building\",3000,1);
            }
        return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strcmp(\"/enter\", cmdtext, true, 6) == 0)
        {
                if(IsPlayerInRangeOfPoint(playerid,10,423.4611,2536.5435,16.1484))
                        {
                                SetPlayerPos(playerid,410.5,2512.6999511719,-41.400001525879);
                                return 1;
                        }
      if (strcmp (\"/exit\", cmdtext, true, 6) == 0)
        {
                if (IsPlayerInRangeOfPoint (playerid, 10,388.8720,173.8050,1008.3828))
                        {
                              SetPlayerPos (playerid, 1480,9829, -1769.9470,18.7958);
                         return 1;
            }

Nem elérhető doboka98

  • 1002
    • Profil megtekintése
pawno hiba
« Válasz #5 Dátum: 2012. Október 13. - 10:06:28 »
+1 Show voters
    // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT
    new cash;
     
    #include <a_samp>
     
    #if defined FILTERSCRIPT
    #endif
     
    public OnGameModeInit()
    {
            // Don\'t use these lines if it\'s a filterscript
            cash=CreatePickup(1239,1,423.4611,2536.5435,16.1484);
            return 1;
    }
     
    public OnPlayerPickUpPickup(playerid, pickupid)
    {
            if(pickupid == cash)
                {
                GameTextForPlayer(playerid,\"~r~ /enter ~y~ to enter this building\",3000,1);
                }
            return 1;
    }
     
    public OnPlayerCommandText(playerid, cmdtext[]) {
    if (strcmp(\"/enter\", cmdtext, true, 6) == 0)
            {
                    if(IsPlayerInRangeOfPoint(playerid,10,423.4611,2536.5435,16.1484))
                            {
                                    SetPlayerPos(playerid,410.5,2512.6999511719,-41.400001525879);
                                    return 1;
                            }
     
                                    if (strcmp (\"/exit\", cmdtext, true, 6) == 0)
            {
                    if (IsPlayerInRangeOfPoint (playerid, 10,388.8720,173.8050,1008.3828))
                            {
                                            SetPlayerPos (playerid, 1480,9829, -1769.9470,18.7958);
                                                            return 1;
              }
                                                    }

pawno hiba
« Válasz #6 Dátum: 2012. Október 13. - 10:15:03 »
0 Show voters
   // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT
    new cash;
    #include <a_samp>
    #if defined FILTERSCRIPT
    #endif
    public OnGameModeInit()
    {
            // Don\'t use these lines if it\'s a filterscript
            cash=CreatePickup(1239,1,423.4611,2536.5435,16.1484);
            return 1;
    }
    public OnPlayerPickUpPickup(playerid, pickupid)
    {
            if(pickupid == cash)
                {
                GameTextForPlayer(playerid,\"~r~ /enter ~y~ to enter this building\",3000,1);
                }
            return 1;
    }
    public OnPlayerCommandText(playerid, cmdtext[]) {
    if (strcmp(\"/enter\", cmdtext, true, 6) == 0)
            {
                    if(IsPlayerInRangeOfPoint(playerid,10,423.4611,2536.5435,16.1484))
                            {
                                    SetPlayerPos(playerid,410.5,2512.6999511719,-41.400001525879);
                                    return 1;
                            }
                                    if (strcmp (\"/exit\", cmdtext, true, 6) == 0)
            {
                    if (IsPlayerInRangeOfPoint (playerid, 10,388.8720,173.8050,1008.3828))
                            {
                                            SetPlayerPos (playerid, 1480,9829, -1769.9470,18.7958);
                                                            return 1;
              }
                                                    }

 

F:\\sampe\\enter.pwn(36) : warning 217: loose indentation
F:\\sampe\\enter.pwn(40) : warning 202: number of arguments does not match definition
F:\\sampe\\enter.pwn(41) : warning 217: loose indentation
F:\\sampe\\enter.pwn(44) : error 030: compound statement not closed at the end of file (started at line 30)
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase

Nem elérhető doboka98

  • 1002
    • Profil megtekintése
pawno hiba
« Válasz #7 Dátum: 2012. Október 13. - 10:39:51 »
0 Show voters
A legvégére rakj még egy ilyen jelt
}

pawno hiba
« Válasz #8 Dátum: 2012. Október 13. - 10:45:54 »
+1 Show voters
:facepalm:
#include <a_samp>
#include <zcmd>
new cash;
public OnFilterScriptInit()
{
    cash = CreatePickup(1239,1,423.4611,2536.5435,16.1484);
    return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == cash)
    {
    GameTextForPlayer(playerid,\"~r~ /enter ~y~ to enter this building\",3000,1);
    }
    return 1;
}
CMD:exit(playerid)
{
    if (IsPlayerInRangeOfPoint (playerid, 10,388.8720,173.8050,1008.3828))
    {
    SetPlayerPos(playerid, 1480,9829, -1769.9470,18.7958);
    }
    return 1;
}
CMD:enter(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid,10,423.4611,2536.5435,16.1484))
    {
    SetPlayerPos(playerid,410.5,2512.6999511719,-41.400001525879);
    }
    return 1;
}

Tesseg!
« Utoljára szerkesztve: 2012. Október 13. - 10:47:34 írta [SDW]BlackJack »

pawno hiba
« Válasz #9 Dátum: 2012. Október 13. - 10:47:07 »
+1 Show voters
http://www.solidfiles.com/d/c7967c9da6/
Színkódot megváltoztathatod.
 

U.I.: Megelõztél :D Én ZCMD nélkül csináltam + 1-2 hibát még kijavítottam benne.

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
pawno hiba
« Válasz #10 Dátum: 2012. Október 13. - 10:52:05 »
+1 Show voters

#include <a_samp>
#pragma tabsize 0
new cash;
    public OnFilterScriptInit()
    {
            // Don\'t use these lines if it\'s a filterscript
            cash = CreatePickup(1239,1,423.4611,2536.5435,16.1484);
            return 1;
    }
    public OnPlayerPickUpPickup(playerid, pickupid)
    {
            if(pickupid == cash)
                {
                GameTextForPlayer(playerid,\"~r~ /enter ~y~ to enter this building\",3000,1);
                }
            return 1;
    }
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/enter\", cmdtext, true, 6) == 0)
{
       if(IsPlayerInRangeOfPoint(playerid,10,423.4611,2536.5435,16.1484))
       {
           SetPlayerPos(playerid,410.5,2512.6999511719,-41.400001525879);
   }
           return 1;
}
           
if (strcmp (\"/exit\", cmdtext, true, 6) == 0)
{
      if (IsPlayerInRangeOfPoint (playerid, 10,388.8720,173.8050,1008.3828))
      {
          SetPlayerPos (playerid, 1480.9829, -1769.9470,18.7958);
          }
          return 1;
}
return 0;
}

 
Javítottam a kordiátánál is . helyett , írtál és azért is errorozott.. probáld meg + kivettem azt a sok felesleges cuccokat..
« Utoljára szerkesztve: 2012. Október 13. - 10:53:46 írta ZyZu »

pawno hiba
« Válasz #11 Dátum: 2012. Október 13. - 10:54:10 »
0 Show voters
nem jó így se

Dupla hozzászólás automatikusan összefûzve. ( 2012. Október 13. - 10:55:19 )

köszönöm mennek a + ok!

pawno hiba
« Válasz #12 Dátum: 2012. Október 13. - 10:58:03 »
0 Show voters
Az enyémmel se? Milyen hibát ír? Lefordítottam és 0 error 0 warning.

pawno hiba
« Válasz #13 Dátum: 2012. Október 13. - 11:08:20 »
0 Show voters
U.I.: Megelõztél :D  Én ZCMD nélkül csináltam + 1-2 hibát még kijavítottam benne.[/quote]Ez van xDDD  :D

pawno hiba
« Válasz #14 Dátum: 2012. Október 13. - 11:23:14 »
0 Show voters
mégsem jó teljesen mivel odaállák én  nem tesz be /enter rel

Dupla hozzászólás automatikusan összefûzve. ( 2012. Október 13. - 11:25:12 )

létrehozza a pickup ot is meg minden de odaállok én nem tesz be /enter rell
« Utoljára szerkesztve: 2012. Október 13. - 11:25:12 írta Dukma123 »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal