SA-MP Forums Archive
[AJUDA] ERRO 010! - 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 010! (/showthread.php?tid=184918)



[AJUDA] ERRO 010! - Max_Bananeira - 22.10.2010

Sempre que eu boto um comando lб no pawno, quando boto pra compilar dб o erro 010: "error 010: invalid function or declaration" QUE QUE EU FAЗOOOO?!!


Re: [AJUDA] ERRO 010! - Falcon. - 22.10.2010

Se mandar a linha do erro ficarб bem mais fбcil....


Re: [AJUDA] ERRO 010! - []Fabricio[] - 22.10.2010

Poste o comando..

Jб vi, uma pessoa pedindo ajuda, com o mesmo erro aqui no fуrum, e o problema era que ela estбva colocando o comando em OnGameModeInit ^~


Re: [AJUDA] ERRO 010! - Max_Bananeira - 22.10.2010

if (strcmp("/kit", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFF6347AA, "Vocк comprou seu kit de armas");
GivePlayerMoney(playerid,-1000);//playerid = o player ,-1000 = o valor.. pode alterar ali mas deixar - pra diminuir a grana ao usar.
GivePlayerWeapon(playerid,26,500);//26= arma 500 = muniзгo
GivePlayerWeapon(playerid,32,500);//32= arma 500 = muniзгo
GivePlayerWeapon(playerid,16,500);//16= arma 500 = muniзгo
GivePlayerWeapon(playerid,33,500);//33= arma 500 = muniзгo
return 1;
}
bom, esse eh o codigo q da erro.. peguei aki no forum mermo


Re: [AJUDA] ERRO 010! - []Fabricio[] - 22.10.2010

Da proxima vez que for postar um cуdigo, use [ PAWN ] CODIGO [ /PAWN ] (sem espaзos)

Seu comando estб normal, repetindo, onde vocк estб tentando colocar ele?

Coloque em OnPlayerCommandText..


Re: [AJUDA] ERRO 010! - Falcon. - 22.10.2010

pawn Код:
if(strcmp(cmdtext,"/kit", true) == 0)
{
SendClientMessage(playerid, 0xFF6347AA,"Vocк comprou o seu kit de armas e gastou $1000");
GivePlayerMoney(playerid, -1000);
GivePlayerWeapon(playerid,26,500);
GivePlayerWeapon(playerid,32,500);
GivePlayerWeapon(playerid,16,500);
GivePlayerWeapon(playerid,33,500);
return 1;
}
Verifique se Este comando esta em OnPlayerCommandText


Re: [AJUDA] ERRO 010! - Max_Bananeira - 22.10.2010

ahn.. sim antes ele tava solto, agr botei ele la no OnPlayerCommandText, e agr sao outros erros q aparecem!
pawn Код:
C:\Server 0.3\gamemodes\rpgdubaum.pwn(44) : error 017: undefined symbol "cmdtext"
C:\Server 0.3\gamemodes\rpgdubaum.pwn(46) : error 017: undefined symbol "playerid"
C:\Server 0.3\gamemodes\rpgdubaum.pwn(47) : error 017: undefined symbol "playerid"
C:\Server 0.3\gamemodes\rpgdubaum.pwn(48) : error 017: undefined symbol "playerid"
C:\Server 0.3\gamemodes\rpgdubaum.pwn(49) : error 017: undefined symbol "playerid"
C:\Server 0.3\gamemodes\rpgdubaum.pwn(50) : error 017: undefined symbol "playerid"
C:\Server 0.3\gamemodes\rpgdubaum.pwn(51) : error 017: undefined symbol "playerid"



Re: [AJUDA] ERRO 010! - Falcon. - 22.10.2010

O.o tem certeza que colocou em OnPlayerCommandText

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/kit", true) == 0)
{
SendClientMessage(playerid, 0xFF6347AA,"Vocк comprou o seu kit de armas e gastou $1000");
GivePlayerMoney(playerid, -1000);
GivePlayerWeapon(playerid,26,500);
GivePlayerWeapon(playerid,32,500);
GivePlayerWeapon(playerid,16,500);
GivePlayerWeapon(playerid,33,500);
return 1;
}
return 0;
}
Se nгo tiver nenhum comando ainda deve ficar assim... veja direito ae


Re: [AJUDA] ERRO 010! - Max_Bananeira - 22.10.2010

RESOLVIDO! MUITO OBRIGADO!!


Re: [AJUDA] ERRO 010! - Max_Bananeira - 22.10.2010

tinha eskecido de botar o (playerid, cmdtext[]) dps do OnPlayerCommandText hehe