GetPlayerSkinID? +Rep
#5

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!
Reply


Messages In This Thread
GetPlayerSkinID? +Rep - by Rodri99 - 20.06.2015, 09:07
Re: GetPlayerSkinID? +Rep - by SloProKiller - 20.06.2015, 09:41
Re: GetPlayerSkinID? +Rep - by Rodri99 - 20.06.2015, 09:44
Re: GetPlayerSkinID? +Rep - by UltraScripter - 20.06.2015, 09:48
Re: GetPlayerSkinID? +Rep - by AndySedeyn - 20.06.2015, 09:54
Re: GetPlayerSkinID? +Rep - by Rodri99 - 20.06.2015, 09:56
Re: GetPlayerSkinID? +Rep - by UltraScripter - 20.06.2015, 10:02
Re: GetPlayerSkinID? +Rep - by SloProKiller - 20.06.2015, 12:17
Re: GetPlayerSkinID? +Rep - by Konstantinos - 20.06.2015, 12:42
Re: GetPlayerSkinID? +Rep - by SloProKiller - 20.06.2015, 12:56

Forum Jump:


Users browsing this thread: 1 Guest(s)