Help with these warnings? - 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: Help with these warnings? (
/showthread.php?tid=454116)
Help with these warnings? -
kaloqn54 - 27.07.2013
Код:
CMD:dildo(playerid, params[])
{
39: if(IsPlayerInRangeOfPoint(playerid, 3.0, 281,2421.8447,-1220.6746,25.4680))
{
41: CreatePickup(1239, 2, 281,2421.8447,-1220.6746,25.4680, 0);
GetPlayerMoney(playerid);
if(GetPlayerMoney(playerid) == 0) return SendClientMessage(playerid, 0xCD3333, "mama nqma pari");
GivePlayerMoney(playerid, -69);
GivePlayerWeapon(playerid, 10, 1);
SendClientMessage(playerid, 0xCD3333, "ti si vze dildo qj go");
}
return 1;
}
D:\igri\GTA San Andreas\filterscripts\Untitled.pwn(39) : warning 202: number of arguments does not match definition
D:\igri\GTA San Andreas\filterscripts\Untitled.pwn(41) : warning 213: tag mismatch
D:\igri\GTA San Andreas\filterscripts\Untitled.pwn(41) : warning 202: number of arguments does not match definition
Re: Help with these warnings? -
Basssiiie - 27.07.2013
Come on, English isn't that difficult! Read the error again.
number of arguments does not match definition
Number of arguments (or parameters) is not correct. In other words, you have too many or too few parameters. Check the corresponding functions
IsPlayerInRangeOfPoint and
CreatePickup to check what parameters/arguments the function asks from you.