A lil help.
#7

Quote:
Originally Posted by RxErT
Посмотреть сообщение
This
PHP код:
CMD:eventbankhost(playeridparams[])
{
    if(
PlayerData[playerid][playerLevel] >= || playerid != EventData[EventHostID] || IsPlayerAdmin(playerid)) 
    {
        new 
id,string[126];
        if(
sscanf(params"r"id)) return SendClientMessage(playerid, -1"USAGE: /eventbankhost <id/name>");
        if(
id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1"ERROR: The user does not exist!");
        if(!
IsPlayerConnected(id)) return SendClientMessage(playerid, -1"The player is not connected!");
        
format(stringsizeof(string), "[EVENT]: Administrator %s has made %s the event bank host."GetName(playerid), GetName(id));
        
SendClientMessageToAll(-1string);
        
EventData[EventHostID] = id;
    }
    else
    {
        
SendClientMessage(playerid, -1,"ERROR: Only administrators can use this command!");
    }
return 
1;

Received errors.
Reply


Messages In This Thread
A lil help. - by Hammad123 - 28.05.2018, 22:57
Re: A lil help. - by FailerZ - 28.05.2018, 23:08
Re: A lil help. - by Hammad123 - 29.05.2018, 18:14
Re: A lil help. - by Exhibit - 29.05.2018, 18:23
Re: A lil help. - by RxErT - 29.05.2018, 19:03
Re: A lil help. - by Hammad123 - 29.05.2018, 19:50
Re: A lil help. - by Hammad123 - 29.05.2018, 21:58
Re: A lil help. - by RxErT - 30.05.2018, 00:19
Re: A lil help. - by Hammad123 - 30.05.2018, 18:41

Forum Jump:


Users browsing this thread: 1 Guest(s)