Simplest error and I can't fix it...
#5

Код:
dcmd_annoy(playerid,params[]){    #pragma unused params    if(PlayerInfo[playerid][LoggedIn] == 1)    {        if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))        {            new tmp[256], tmp2[256], Index;        tmp = strtok(params,Index), tmp2 = strtok(params,Index);            if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /annoy [playerid] [reason]");            new player1, playername[MAX_PLAYER_NAME], string[128];            player1 = strval(tmp);            if(IsPlayerConnected(player1)) return SendClientMessage(playerid,red,"Player not connected.");            if(cow_victim != -1) return SendClientMessage(playerid,red,"Sorry! It seems like your cow has already been stolen by another administrator.");            #if ALLOW_ANNOY == false                return SendClientMessage(playerid,red,"Sorry! This feature has been disabled.");            #else            AnnoyPlayer(player1);            format(string, sizeof(string),"**COW:  %s  (%d)  (ADMIN COW)  %s ",playername, player1, params[2]); SendClientMessageToAll(COLOR_PINK,string);            SendClientMessage(playerid,red,"You have released the cow.");            if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /annoy [playerid] [reason]");            player1 = strval(tmp);            #endif            }            else            {            new playername[MAX_PLAYER_NAME],player1, string[128];            format(string,sizeof(string),"**COW:  %s (%d)  (ADMIN COW)  No Reason Given.",playername,player1,params[2]); SendClientMessageToAll(COLOR_PINK,string);            return SendClientMessage(playerid,red,"You have released the cow.");        } else return SendClientMessage(playerid,red,"You Are Not Authorized To Use That Command.");    } else return SendClientMessage(playerid,red,"ERROR: You Are Not A High Enough Level To Use This Command.");
return 1;}
Reply


Messages In This Thread
Simplest error and I can't fix it... - by grand.Theft.Otto - 26.03.2011, 18:10
Re: Simplest error and I can't fix it... - by Hashski - 26.03.2011, 18:11
Re: Simplest error and I can't fix it... - by Stigg - 26.03.2011, 18:12
Re: Simplest error and I can't fix it... - by grand.Theft.Otto - 26.03.2011, 18:27
Re: Simplest error and I can't fix it... - by -Rebel Son- - 26.03.2011, 21:26

Forum Jump:


Users browsing this thread: 1 Guest(s)