Quote:
Originally Posted by UltraScripter
try this
pawn Код:
if(listid == skinlist) { if(response) { SetPlayerSkin(playerid, modelid); SetTimerEx("SkinID", 1000, false, "i", playerid); GivePlayerMoney(playerid, -200); } else SendClientMessage(playerid, red, "Skin selection aborted");
forward SkinID(playerid);
public SkinID(playerid) { new Str[64]; format(Str, 64, "Skin: %d", GetPlayerSkin(playerid)); SendClientMessage(playerid, -1, Str); return 1; }
|
You are missing a bracket. Why do you use a timer for that? And if you were to use one, why would you give the format variable an extra 58 bits? The maximum length of that format is 9 characters!