18.07.2011, 20:08
I made something that you type your skin ID in a dialog, and he writes that with dini in the file. I tested it works, but i couldn't figure out how to set his skin to that number he wrote, I already tested the following but i wont work:
Here: is my error.
Here: is my line 751.
Thanks already for the helps
pawn Код:
if (dialogid == Skint)
{
if(response)
{
if(!strlen(inputtext) || strlen(inputtext) >= 300 || strlen(inputtext) < 1) return ShowPlayerDialog(playerid, Skint, DIALOG_STYLE_INPUT, "Skin", "You can't choose that skin!", "Accept", "Cancel");
dini_Set(archivo,"skin", inputtext);
SetPlayerSkin(playerid, skin);
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "You selected cancel, you you got kicked!");
Kick(playerid);
}
return 1;
}
return 1;
}
Код:
...\Desktop\new.pwn(751) : error 035: argument type mismatch (argument 2)
pawn Код:
SetPlayerSkin(playerid, skin);