Quote:
Originally Posted by CyberGhost
pawn Код:
COMMAND:freeze(playerid, params[]) { if(PlayerInfo[playerid][Admin] <= 0) return SendClientMessage(playerid, 0x0259EAAA, "You are not admin"); { new targetid, playername[24], targetname[24]; if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, 0x0259EAAA, "USAGE: /freeze [PlayerId/PartOfName]"); else if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0x0259EAAA, "Player is not connected"); { GetPlayerName(playerid, playername, sizeof(playername)); GetPlayerName(targetid, targetname, sizeof(targetname)); format(string, sizeof(string), "Admin Action: Admin %s Has Feeze You", playername); SendClientMessage(targetid, 0xFF0000FF, string); format(string, sizeof(string), "You Has Freeze %s", targetname); SendClientMessage(playerid, 0xFF0000FF, string); TogglePlayerControllable(targetid, false); } } return 1; }
|
TC-RP.pwn(494) : error 017: undefined symbol "string"
TC-RP.pwn(494) : error 017: undefined symbol "string"
TC-RP.pwn(494) : error 029: invalid expression, assumed zero
TC-RP.pwn(494) : fatal error 107: too many error messages on one line