1 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: 1 Error (
/showthread.php?tid=372466)
1 Error -
JEkvall95 - 26.08.2012
when I add this
pawn Код:
if(strcmp(cmdtext, "/kill", true) == 0)
SetPlayerHealth(playerid,0.0);
I get this error
Код:
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc.pwn(1031) : error 010: invalid function or declaration
Re: 1 Error -
Akira297 - 26.08.2012
You don't have it returning the command.
'return 1;'
Re: 1 Error -
JEkvall95 - 26.08.2012
Quote:
Originally Posted by Akira297
You don't have it returning the command.
'return 1;'
|
that didnt work
Код:
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc.pwn(1031) : error 010: invalid function or declaration
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc.pwn(1033) : error 010: invalid function or declaration
Re: 1 Error -
marmigs - 26.08.2012
pawn Код:
if(strcmp(cmdtext, "/kill", true) == 0) {
SetPlayerHealth(playerid,0.0);
return 1;
}
Re: 1 Error -
SuperViper - 26.08.2012
You forgot a
) at the end of the strcmp line. Also, change the
SetPlayerHealth line to
return SetPlayerHealth(.......).
Re: 1 Error -
Akira297 - 26.08.2012
<Removed>