17.04.2015, 00:16
As @Mencent said... This should work:
If it doesn't, tell me what is the exact problem.
If it doesn't, tell me what is the exact problem.
pawn Код:
if(dialogid == Skin)
{
if(response)
{
new skinid, message[64];
skinid = strval(inputtext);
if(skinid < 0 || skinid > 299)
{
SendClientMessage(playerid, 0x33FF33AA, "Error: Choose a skin ID between 0 and 299.");
Kick(playerid);
}
else
{
format(message, sizeof(message), "You have successfully changed your skin id to %d.", skinid);
SendClientMessage(playerid, 0x33FF33AA, message);
SetSpawnInfo(playerid,0,skinid,2239.723, -1261.922, 23.9375,270.7165,0,0,0,0,0,0);
SpawnPlayer(playerid);
}
}
}