SA-MP Forums Archive
[Ajuda]warning 202: number of arguments does not match definition - 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]warning 202: number of arguments does not match definition (/showthread.php?tid=349444)



[Ajuda]warning 202: number of arguments does not match definition - F_Cinco - 09.06.2012

Bem, como estou comeзando na linguagem pawn, estou aprendendo criar um sistema de Loja de Armas '-', porйm, estгo dando 2 warnings em uma msm linha, mais n estou entendo o pq! :S

Linha:
pawn Code:
GetPlayerWeapon(playerid, 24, 100);
Funзгo:
pawn Code:
if(dialogid == LojaDeArmas1)
    {
    if(response)
    {
    if(listitem == 0)
    {
    if(GetPlayerMoney(playerid) < 150) return SendClientMessage(playerid, amarelo,"[Loja] Vocк comprou uma Desert Eagle.");
    GivePlayerMoney(playerid, -150);
    GetPlayerWeapon(playerid, 24, 100);
    }}}
    return 1;
    }



Re: [Ajuda]warning 202: number of arguments does not match definition - Vitor_Marfioso - 09.06.2012

Ao invйs de GetPlayerWeapon Use: GivePlayerWeapon.


Re: [Ajuda]warning 202: number of arguments does not match definition - F_Cinco - 09.06.2012

Quote:
Originally Posted by Vitor_Marfioso
View Post
Ao invйs de GetPlayerWeapon Use: GivePlayerWeapon.
Nice!

@Closed.