Error - Must be assigned to an array
#1

I have this error that I keep getting and I have no idea why I'm getting it and I have no idea how to fix it.
PHP код:
Line (13643) : error 006must be assigned to an array 
Here is the code:
PHP код:
COMMAND:referr(playeridparams[])
{
    new 
playername[24], string[100];
    if(!
PlayerInfo[playerid][pReferedBy]) return SendClientMessage(playeridCOLOR_GRAD3"You have already previously referred somebody.");
    if(
sscanf(params"s[24]"playername)) return Usage(playerid"/referr [playername]");
    
//Pull MySQL information from the SQL database
    
format(stringsizeof(string), "SELECT `Name` FROM `users` WHERE `Name`='%s'"playername);
    
mysql_query(string);
    
mysql_store_result();
    if(!
mysql_num_rows()) return SendClientMessage(playeridCOLOR_GRAD3"The players name you provided is not an existing players name.");
    if(
accountID[playerid] == GetOfflinePlayerInt(playername"accountid")) return SendClientMessage(playeridCOLOR_GRAD3"You cannot another one of your characters.");
    if(
PlayerInfo[playerid][pIP] == GetOfflinePlayerInt(playername"ip")) return SendClientMessage(playeridCOLOR_GRAD3"You cannot referr somebody with the same IP Address.");
    
mysql_free_result();
    
//Referral system
    
PlayerInfo[playerid][pReferedBy] = playername;
    return 
1;

The error is pointing to this line: PlayerInfo[playerid][pReferedBy] = playername;
Reply


Messages In This Thread
Error - Must be assigned to an array - by mrtms - 23.02.2013, 19:50
Re: Error - Must be assigned to an array - by Misiur - 23.02.2013, 20:05
Re: Error - Must be assigned to an array - by mrtms - 23.02.2013, 20:10
Re: Error - Must be assigned to an array - by Misiur - 23.02.2013, 20:13
Re: Error - Must be assigned to an array - by mrtms - 23.02.2013, 21:26
Re: Error - Must be assigned to an array - by mrtms - 23.02.2013, 21:35

Forum Jump:


Users browsing this thread: 1 Guest(s)