23.04.2012, 18:11
I am trying to make it so it changes your name
I am getting this error
Line 472 : PlayerData[playerid][AdminName] = newname;
Thank You
Please Help Me Please
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