Skin Dialog Save
#1

Oh hi !

i got this Skin dialog

pawn Код:
if(strcmp(cmdtext, "/changeskin", true) == 0)
    {
        if(!IsPlayerInRangeOfPoint(playerid, 10.0, 207.4390,-105.3136,1005.1328)) return SendClientMessage(playerid,-1,"You are not at Binco!");
        ShowPlayerDialog(playerid, 5858, DIALOG_STYLE_INPUT, "Skin Change 500$", "Enter the skin id you wish to have below", "Confirm", "Cancel");
        return 1;
    }

pawn Код:
if(dialogid == 5858)
    {
        if(response)
        {
            new skinid, message[64];
            skinid = strval(inputtext);
            if(skinid < 0 || skinid > 299)
            {
                SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Skin id may be between 0 and 299.");
            }
            else
            {
                SetPlayerSkin(playerid, skinid);
                format(message, sizeof(message), "SERVER: You have changed your skin id to %d.", skinid);
                SendClientMessage(playerid, 0xFFFFFFFF, message);
                SafeGivePlayerMoney(playerid,-500);
            }
    }
    return 1;
}
Simply but.. after Reconnect the skin is gone..
now my question is how do i make this Skin Save
anyone who can make a code or get me a link, would be nice thanks !
Reply
#2

you will have to learn how to use a database like dini mysql SQLite i prefer mysql i and i use all with it there are alot of register script toturias with money saves and with it you can learn how to save the skin and load the skin. Hope the reply helps you
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=59832
Reply
#4

Hmm ye dude thats like a Skin Property system
all i need is a /changeskin "id" or a Dialog which i have here.
and make it save afterwards when peopel buy them.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)