23.04.2012, 22:38
I am trying to make it so when you do /setadminskin <SKINIDHERE> what you put there your skin would chance to for your permanant admin skin and message to pop up saying you have done it
Im getting this error
Line 488 : format(PlayerData[playerid][AdminSkin],"%s",newskin);
Thank You
Please Help Me Please
pawn Код:
CMD:setadminskin(playerid, params[])
{
if(PlayerData[ID][AdminLevel] >= 1)
{
new string[128], newskin[3];
if(sscanf(params, "sk", newskin)) return SendClientMessage(playerid, COLOR_GREEN, "USAGE: /setadminskin <skinid>");
format(PlayerData[playerid][AdminSkin],"%s",newskin);
format(string, sizeof(string), "You set your admin skin to %s", newskin);
SendClientMessage(playerid, 0xFFFFFFF, string);
}
return 1;
}
Im getting this error
pawn Код:
error 035: argument type mismatch (argument 2)
Line 488 : format(PlayerData[playerid][AdminSkin],"%s",newskin);
Thank You
Please Help Me Please