SA-MP Forums Archive
Ajuda Com A Funзгo: number of arguments does not - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Ajuda Com A Funзгo: number of arguments does not (/showthread.php?tid=662791)



Ajuda Com A Funзгo: number of arguments does not - XzSmokezX - 11.01.2019

Alguem pode me ajudar? Estou com um problema na minha GM que eu tento inserir um valor pegando as estrelas de procurado do player e multiplicando por 2500, compila deboa mas fica com warning na GM e insere um valor totalmente aleatуrio no game, segue abaixo os erros e scripts.


new procurado;
procurado = GetPlayerWantedLevel(playerid);
SendClientMessage(playerid,Verde,"*{87CEEB} Vocк pagarб RS%f para limpar sua ficha!", 2500*procurado);

e dб esse warning quando compila

warning 202: number of arguments does not match definition

OBS: peguem leve, sou iniciante em pwn, grato a qualquer ajuda!


Re: Ajuda Com A Funзгo: number of arguments does not - Amads - 11.01.2019

Are you lost?
Here you go: https://forum.sa-mp.com/forumdisplay.php?f=34

nonetheless,
PHP Code:
new procurado GetPlayerWantedLevel(playerid);
new 
str[128]; // you need to create and format a string for that
format(strsizeof(str), "*{87CEEB} Vocк pagarб RS%f para limpar sua ficha!"2500*procurado);
SendClientMessage(playeridVerdestr);