Positioning help.
#3

These warnings can be VERY annoying.

pawn Код:
COMMAND:startcustomevent(playerid, params[])
{
    new string[256], text[256];
    if(sscanf(params, "s[256]", text)) SendClientMessage(playerid, COLOR_GREY, "USAGE: /startcustomevent [Event Name]");
    else
    {
        if(PlayerInfo[playerid][pAdmin] >= 1)
        {
            new Float:X, Float:Y, Float:Z;
            GetPlayerPos(playerid, X, Y, Z);
            format(string, sizeof(string), "%s %s has started the %s event, private message an online administrator to participate.", GetAdminLvlName(playerid), GetName(playerid), text);
            SendClientMessageToAll(COLOR_GREY, string);
            foreach (Player, i)
            {
                new str[15];
                format(str, sizeof(str),"%d",X);
                new stri = strval(str);
                EventInfo[i][ePosX] = stri;
            }
        }
        else SendClientMessage(playerid, COLOR_LIGHTRED, "WARNING: You do not have access to this command");
    }
    return 1;
}
Reply


Messages In This Thread
Positioning help. - by Blunt - 14.07.2012, 22:27
Re: Positioning help. - by Captain_Mani - 15.07.2012, 01:48
Re: Positioning help. - by clarencecuzz - 15.07.2012, 03:28
Re: Positioning help. - by ReneG - 15.07.2012, 04:04

Forum Jump:


Users browsing this thread: 2 Guest(s)