12.03.2014, 17:42
I want to save players skin . When i write a command /maketerro put the terro skin and when i write /makecounter put the police skin. When player die and has terro or police skin put the older skin.
new save[MAX_PLAYERS];
if (!strcmp("/maketerror,cmdtext,true,9))
{
save[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid, TERORSKIN);//replace
}
if (!strcmp("/makecounter",cmdtext,true,9))
{
save[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid, POLICESKIN);//replace
}
C:\Users\Alex\Desktop\ftrp.pwn(7749) : error 017: undefined symbol "save"
C:\Users\Alex\Desktop\ftrp.pwn(7749) : warning 215: expression has no effect
C:\Users\Alex\Desktop\ftrp.pwn(7749) : error 001: expected token: ";", but found "]"
C:\Users\Alex\Desktop\ftrp.pwn(7749) : error 029: invalid expression, assumed zero
C:\Users\Alex\Desktop\ftrp.pwn(7749) : fatal error 107: too many error messages on one line