SA-MP Forums Archive
please help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: please help (/showthread.php?tid=280243)



please help - ancezas - 31.08.2011

Hello everybody i need some help with Dini
i have this script:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp("/Numeriai", cmdtext, true, 10) == 0)
        {
            if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,"Jūs Nesate Transporte");
            new string[60];
            format(string,60,"Iveskite Savo Numerius.",string);
                ShowPlayerDialog(playerid,0,DIALOG_STYLE_INPUT,"{EE7777}Transporto Numeriai",string,"Gerai","Iseiti");
                return 1;
        }
        return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
        if(dialogid == 0) {
                if(response) {
                    SetVehicleNumberPlate(GetPlayerVehicleID(playerid), inputtext);
                    SetVehicleToRespawn(GetPlayerVehicleID(playerid));
                        } else {
                        SendClientMessage(playerid,0xFFFFFFFF,"Atљaukta!");
                        }
                }
        return 1;
}
but when i log out and next time log in in game my vehicle plate is gone
i need a tut how to save in Dini can someone help me?


Re: please help - Darnell - 31.08.2011

Use y_ini, it's better, ****** made a guide how to use y_ini, search for it.


Re: please help - Farsek - 31.08.2011

http://forum.sa-mp.com/showthread.ph...79#post1346379