Help Fixing this error - 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 Fixing this error (
/showthread.php?tid=499232)
Help Fixing this error -
Zin - 07.03.2014
My gamemode all goes wrong here.
Код:
//CMDS
COMMAND:GODON(playerid, params[5])
{
SetPlayerHealth(playerid, "999999"
}
Error
Код:
C:\Users\Zin\Desktop\ProjectZin\gamemodes\Cheatz.pwn(45 -- 46) : error 035: argument type mismatch (argument 2)
Re: Help Fixing this error -
dice7 - 07.03.2014
pawn Код:
COMMAND:GODON(playerid, params[5])
{
SetPlayerHealth(playerid, 99999);
}
Re: Help Fixing this error -
Konstantinos - 07.03.2014
Don't use any size for the params and return a value as ZCMD should return something. Use for the command's name lowercase and not capital.
pawn Код:
COMMAND:godon(playerid, params[])
{
SetPlayerHealth(playerid, 999999);
return 1;
}
Re: Help Fixing this error -
BoBiTzaa - 07.03.2014
try this :
PHP код:
COMMAND:GODON(playerid, params[5])
{
SetPlayerHealth(playerid, "999999");
return 1;
}
Re: Help Fixing this error -
XK - 07.03.2014
Make it like this:
pawn Код:
COMMAND:GODON(playerid, params[])
{
SetPlayerHealth(playerid, 99999);
return 1;
}