19.06.2012, 22:34
I'm rather new to scripting, and when I compile I get errors.
Here's the command I am trying to add.
Here are the Errors I am getting when I try to compile.
Could someone tell me where I have gone wrong? 
NOTE: This is Line 150: if (strcmp("/kill", cmdtext, true 5) == 0)
Here's the command I am trying to add.
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true 5) == 0)
{
SetPlayerHealth(playerid, 0.0);
return 1;
}
return 0;
PHP код:
C:\Users\Montell\Desktop\montytest.pwn(150) : error 001: expected token: ",", but found "-integer value-"
C:\Users\Montell\Desktop\montytest.pwn(150) : warning 215: expression has no effect
C:\Users\Montell\Desktop\montytest.pwn(150) : error 001: expected token: ";", but found ")"
C:\Users\Montell\Desktop\montytest.pwn(150) : error 029: invalid expression, assumed zero
C:\Users\Montell\Desktop\montytest.pwn(150) : fatal error 107: too many

NOTE: This is Line 150: if (strcmp("/kill", cmdtext, true 5) == 0)