05.01.2011, 11:26
Soo. I find ZCMD and SSCANF interesting so I want to start scripting with that, I saw a guide on how to set it up, when I try to make a command, i get four errors (code below)
I got the
under #include <a_samp>
if you wanna see the cmd i am trying to make here it is
In advance, Thank you.
pawn Код:
C:\Users\Ruby\Documents\0.3c Scripting\gamemodes\TestingZCMD.pwn(92) : error 029: invalid expression, assumed zero
C:\Users\Ruby\Documents\0.3c Scripting\gamemodes\TestingZCMD.pwn(92) : error 017: undefined symbol "cmd_heal"
C:\Users\Ruby\Documents\0.3c Scripting\gamemodes\TestingZCMD.pwn(92) : error 029: invalid expression, assumed zero
C:\Users\Ruby\Documents\0.3c Scripting\gamemodes\TestingZCMD.pwn(92) : fatal error 107: too many error messages on one line
pawn Код:
#include <zcmd>
#include <sscanf2>
if you wanna see the cmd i am trying to make here it is
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
COMMAND:heal(playerid, params[])
{
SetPlayerHealth(playerid, 50);
return 1;
}
return 0;
}