Must be assigned to an array
#1

pawn Код:
CMD:factionname(playerid, params[])
{
    new string[128];
    if(PVar[playerid][pFaction] == 0)
    {
        return SendClientMessage(playerid, COLOR_RED, "[ERROR:] You are not in a faction");
    }
    if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USE: /factionname [name]");
    format(string, sizeof(string), "[INFO:] You have set factions name to %s", params);
    SendClientMessage(playerid, COLOR_GREEN, string);
    new factionid;
    factionid = PVar[playerid][pFaction];
    return FVar[factionid][fName] = params; // Says that this must be assigned to an array
}
Any help?
Reply


Messages In This Thread
Must be assigned to an array - by Shuffler - 11.10.2011, 17:52
Re: Must be assigned to an array - by IstuntmanI - 11.10.2011, 18:15
Re: Must be assigned to an array - by Wesley221 - 11.10.2011, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)