13.01.2011, 12:22
i followed you tut and this is my errors and code:
errors:
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
COMMAND:freeze(playerid, params[])
{
new otherplayerid;
if(sscanf(params, "d", otherplayerid)) return SendClientMessage(playerid, COLOUR_LIGHTBLUE, "Use /freeze [playerid/name]");
else if(!IsPlayerConnected(otherplayerid)) return SendClientMessage(playerid, COLOUR_GREEN, "This player is not connected");
else
{
SendClientMessage(otherplayerid,COLOUR_GREEN,"The Admin %d killed you!");
TogglePlayerControllable(otherplayerid, 0);
}
return 1;}
return 0;
}
PHP код:
D:\gta san andreas online\Godfucker\filterscripts\AdminCmds.pwn(20) : error 017: undefined symbol "freeze"
D:\gta san andreas online\Godfucker\filterscripts\AdminCmds.pwn(23) : error 017: undefined symbol "sscanf"
D:\gta san andreas online\Godfucker\filterscripts\AdminCmds.pwn(30) : warning 217: loose indentation
D:\gta san andreas online\Godfucker\filterscripts\AdminCmds.pwn(31) : warning 225: unreachable code
D:\gta san andreas online\Godfucker\filterscripts\AdminCmds.pwn(20) : warning 203: symbol is never used: "COMMAND"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.