Loading a string with Dini?
#1

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:
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;
}
Here: is my error.

Код:
...\Desktop\new.pwn(751) : error 035: argument type mismatch (argument 2)
Here: is my line 751.
pawn Код:
SetPlayerSkin(playerid, skin);
Thanks already for the helps
Reply


Messages In This Thread
Loading a string with Dini? - by lawonama - 18.07.2011, 20:08
Re: Loading a string with Dini? - by Adil - 18.07.2011, 20:28
Re: Loading a string with Dini? - by lawonama - 18.07.2011, 20:48
Re: Loading a string with Dini? - by eDz0r - 18.07.2011, 20:52
Re: Loading a string with Dini? - by park4bmx - 18.07.2011, 20:52
Re: Loading a string with Dini? - by DeadAhead - 18.07.2011, 20:55
Re: Loading a string with Dini? - by lawonama - 18.07.2011, 21:02
Re: Loading a string with Dini? - by Fj0rtizFredde - 18.07.2011, 21:02
Re: Loading a string with Dini? - by lawonama - 18.07.2011, 21:04
Re: Loading a string with Dini? - by lawonama - 18.07.2011, 21:10

Forum Jump:


Users browsing this thread: 2 Guest(s)