A little bit of help please
#1

I am trying to make it so it changes your name


pawn Код:
enum pData
{
    AdminLevel,
    AdminName
}

pawn Код:
CMD:setadminname(playerid, params[])
{
    if(PlayerData[ID][AdminLevel] >= 1)
    {
        new string[128], newname[15];
        if(sscanf(params, "s", newname)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setadminname <name>");
        PlayerData[playerid][AdminName] = newname;
        format(string, sizeof(string), "You set your admin name to %s", newname);
        SendClientMessage(playerid, 0xFFFFFFFF, string);
    }
    return 1;
}

I am getting this error


pawn Код:
(472) : error 006: must be assigned to an array

Line 472 : PlayerData[playerid][AdminName] = newname;


Thank You


Please Help Me Please
Reply


Messages In This Thread
A little bit of help please - by Scripter12345 - 23.04.2012, 18:11
Re: A little bit of help please - by Calgon - 23.04.2012, 18:13
Re: A little bit of help please - by Scripter12345 - 23.04.2012, 18:15
Re: A little bit of help please - by ViniBorn - 23.04.2012, 18:15
Re: A little bit of help please - by Calgon - 23.04.2012, 18:18

Forum Jump:


Users browsing this thread: 1 Guest(s)