SA-MP Forums Archive
[AJUDA] Erro - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Erro (/showthread.php?tid=183428)



[AJUDA] Erro - Parkeless - 15.10.2010

Bom eu estava trabalhando nesse gamemode que acabei de comeзar e entгo veio esse erro que nгo consigo entender...

Код:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\cnr.pwn(32) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\cnr.pwn(1176) : warning 203: symbol is never used: "gJob"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
O warning eu sei o que й, mais o erro nгo, as linhas que talvez interessem sгo:

pawn Код:
enum Jobs
{
    Rapist,
    Kidnapper,
    Hitman,
    Cop,
    Medic,
    Army
}

enum PlayerData
{
    Registered,
    Logged,
    ShowID,
    Level,
    Score,
    PocketCash,
    LastIP,
    Muted,
    RobSkill,
    RapeCount
}

new gPlayerData[MAX_PLAYERS][PlayerData];
new gJob[MAX_PLAYERS][Jobs];
A linha do erro й:
pawn Код:
Cop, //A mesma no enum "Jobs"
Obrigado pela ajuda


Re: [AJUDA] Erro - HigorOliverr - 15.10.2010

Ja olhou se existe otra : new Cop ?


Re: [AJUDA] Erro - †♥† - 15.10.2010

Quote:
Originally Posted by HigorOliverr
Посмотреть сообщение
Ja olhou se existe otra : new Cop ?
The message you have entered is too short. Please lengthen your message to at least 8 characters.


Re: [AJUDA] Erro - HigorOliverr - 15.10.2010

velho olhaa se nao existe otra new COP; ou new COP[MAX_PLAYERS];


Re: [AJUDA] Erro - Parkeless - 15.10.2010

Quote:
Originally Posted by HigorOliverr
Посмотреть сообщение
velho olhaa se nao existe otra new COP; ou new COP[MAX_PLAYERS];
Nгo existe outra nгo, eu nem vou usar esse cуdigo pq percebi q n seria ъtil, mas sу pra tirar dъvida mesmo caso isso venha a ocorrer denovo..