warning 202: number of arguments does not match definition - 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: warning 202: number of arguments does not match definition (
/showthread.php?tid=510922)
warning 202: number of arguments does not match definition -
cleanboy - 03.05.2014
how i can i remove that warning?
Код:
C:\Users\Louis Alcosaba\Desktop\LSCNR\gamemodes\1.2.pwn(1863) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
line 1863
Код:
GetPlayerMoney(playerid, -10000);
this is the code OnPlayerDeath
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new string[120];
GetPlayerMoney(playerid, -10000);
SendClientMessage(playerid, COLOR_WHITE, "You have been charged $10,000 for medical services.");
SetPlayerWantedLevel(playerid, 0);
if(!IsPlayerConnected(killerid))
{
format(string, sizeof(string), "[DEATH]: %s Killed Himself.", PlayerInfo(playerid));
print(string);
return 1;
}
Re: warning 202: number of arguments does not match definition -
Parallex - 03.05.2014
It should be this if you want to decrease their cash:
pawn Код:
GivePlayerMoney(playerid, -10000);
__________________________________________________ _________________________________________________
If you're looking for GetPlayerMoney, it should be like this:
For Example, you want to tell how much money that player has:
pawn Код:
SendClientMessage(playerid,COLOR_RED,"Your money: $%i.", GetPlayerMoney(playerid));
Re: warning 202: number of arguments does not match definition -
cleanboy - 03.05.2014
yay bro! +1 rep fixed!! thanks
Re: warning 202: number of arguments does not match definition -
Parallex - 03.05.2014
No problem, dude.