29.03.2016, 16:27
Hi.
I got this code, and this line doesn't seem to be working:
if(!IsACopSkin && !IsPlayerFED(playerid)) return 0;
Pawno says it has an invalid syntax / function.
Can someone help me with this please? Thanks.
I got this code, and this line doesn't seem to be working:
if(!IsACopSkin && !IsPlayerFED(playerid)) return 0;
Pawno says it has an invalid syntax / function.
Can someone help me with this please? Thanks.
Код:
{ new iSkin; if(sscanf(params, "d", iSkin)) return SCP(playerid, "[skin id]"); if(!IsValidSkin(iSkin)) return SCP(playerid, "[skin id]"); if(!IsACopSkin && !IsPlayerFED(playerid)) return 0; else { GivePlayerMoneyEx(playerid, -350); SetPlayerSkin(playerid, iSkin); dUserSetINT(PlayerName(playerid)).("skin",iSkin); PlayerInfo[playerid][Skin] = iSkin; return 1; } return 1; }