ERROR
#1

i want to make aka command i started making it when i got to this point i compiled i had 1 error and i don't know how to fix it

pawn Код:
dcmd_aka(playerid, params[])
{
    new cmdreason[24];
    new pname[24];
    if(sscanf(params,"s[24]",cmdreason))
    {
        SendClientMessage(playerid,COLOR_RED,"[ERROR] {FFFFFF}USAGE /aka (Account)");
        return 1;
    }
    if(!udb_Exists(cmdreason))
    {
        SendClientMessage(playerid,COLOR_RED,"[ERROR] {FFFFFF}This account didn't found try another one");
        return 1;
    }
    for(new i=0; i<MAX_PLAYERS_; i++)
    {
        GetPlayerName(i,pname,sizeof(pname));
        if(pname == cmdreason) // 8008
        {
            SendClientMessage(playerid,COLOR_RED,"[ERROR] {FFFFFF}You can't remove this account because the account owner is in-game");
            return 1;
        }
    }
   
    /*GetPlayerName*/
}
Код:
C:\Users\maher\Desktop\ahmad ghanayem\ълрйеъ\Iron-Players\gamemodes\Iron-Players.pwn(8008) : error 033: array must be indexed (variable "pname")
Reply


Messages In This Thread
ERROR - by TomatoRage - 06.01.2014, 10:59
Re: ERROR - by Voxel - 06.01.2014, 11:29
Re: ERROR - by MatriXgaMer - 06.01.2014, 11:30

Forum Jump:


Users browsing this thread: 1 Guest(s)