30.07.2011, 11:46
Hi I made this command for energy while playing, but I got problems! Only admins can use this command!
I got 3 error while compiling:
pawn Код:
CMD:energy(playerid, params[])
{
if(IsPlayerAdmin(playerid)) {
new ID;
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, COLOR_BLUE, "USAGE: /energy"); //errorline
SetPlayerHealth(SetPlayerHealth +100); //errorline
}
else
{
SendClientMessage(playerid, COLOR_BLUE, "You are not an administrator, so you can't use this command!"); //errorline
}
return 1;
}
Код:
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(64) : error 035: argument type mismatch (argument 2) D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(65) : error 076: syntax error in the expression, or invalid function call D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(69) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.