Jump to content
  • 0

dini...


[RSD]TheBoss

Question

Mda Nu prea ma descurc in dini recunosc....deci as avea putin ajutor...DACA PUTETi si daca vreti.....

Nu sunt sigur cam cum ar fi sa se stockeze datele......de genu

variabila[playerid] =0; //1

adica ex sa zicem ca fac o variabila sa verifice daca ai permis...

cam asa

?

[pawn]

public OnPlayerConnect(playerid)

{

new name[MAX_PLAYER_NAME];

GetPlayerName(playerid,name,sizeof(name));

dini_Create(....)

}

[/pawn]

Si sa se salveze de ex: In scriptFiles

si sa verifice de acolo daca e on...ca daca de exemplu setez o limba.....sa numai apara de fiecare data sa o setez ...dar nu stiu cum sa fac:|adica nam idee partea cu dini....de fiecare daca cand le invat...nu stiu....parca le uit...in fine daca ati vrea...nu cer script cer doar sa ma ajutati ca nam idee cum sa fac :(( un pic partea cu dini ca se creeze alea..ca de restu ma descurc...As fi recunoscator :)

Multumesc:)!

New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

deci eu iti fac cum am eu cu variabila la mn pt limba asta ar fii cam asa:

OnPlayerConnect(playerid)
{
    new langfile[100];
    if(!dini_Exists(langfile))
    {
    dini_Create(langfile);
    dini_IntSet(langfile, "English", 0);
    dini_IntSet(langfile, "Romana", 0);
    if(Roman[playerid] = 0) = dini_Int(langfile, "English");
    if(Roman[playerid] = 1) = dini_Int(langfile, "Romana");
    }
    else
    {
    if(Roman[playerid] = 0) = dini_Int(langfile, "English");
    if(Roman[playerid] = 1) = dini_Int(langfile, "Romana");
    }
return 1;
}

nu sunt prea sigur ca ii bine dar noh am incercat...

PS. - mai bn te ocupi sa stii Y_INI pt ca ii mai rapid...decat  dini...nu are rost sa te inveti akm dini....

Fara reclama in semnatura!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.