Everything is okay but...
#7

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
Reply


Messages In This Thread
Everything is okay but... - by Tachibana - 21.06.2011, 16:53
Re: Everything is okay but... - by Wesley221 - 21.06.2011, 17:04
Re: Everything is okay but... - by Tachibana - 21.06.2011, 17:06
Re: Everything is okay but... - by Donya - 21.06.2011, 17:12
Re: Everything is okay but... - by Tachibana - 21.06.2011, 17:15
Re: Everything is okay but... - by Laronic - 21.06.2011, 17:16
Re: Everything is okay but... - by Tachibana - 21.06.2011, 17:17
Re: Everything is okay but... - by Laronic - 21.06.2011, 17:20
Re: Everything is okay but... - by Tachibana - 21.06.2011, 17:21
Re: Everything is okay but... - by Donya - 21.06.2011, 17:35

Forum Jump:


Users browsing this thread: 1 Guest(s)