Jump to content

Question

Posted

Salut!! Am un sistem de licente auto prbl. e cand intru si cumpar licenta imi spune ca am cumparato....dar cand ies si intru din nou ..trb sa o cumpar din nou...

y/m:

armando.jupanu

7 answers to this question

Recommended Posts

Posted

poftim :

[pawn]public OnPlayerDisconnect(playerid, reason)

{

    GetPlayerName(playerid, pname, sizeof(pname));

format(playerfile, sizeof(playerfile), "Licenses/%s.ini",pname);

    dini_IntSet(playerfile, "Car License", LicenseInfo[playerid][Car]);

return 1;

}

public OnPlayerConnect(playerid)

{

GetPlayerName(playerid, pname, sizeof(pname));

format(playerfile, sizeof(playerfile), "Licenses/%s.ini",pname);

return 1;

}

public OnPlayerRequestSpawn(playerid)

{

    GetPlayerName(playerid, pname, sizeof(pname));

format(playerfile, sizeof(playerfile), "Licenses/%s.ini",pname);

    LicenseInfo[playerid][Car] = dini_Int(playerfile, "Car License");

return 1;

}[/pawn]

Oare sa creez un fisier cu license? in scriptfiles

y/m:

armando.jupanu

Posted

Logic frante in scriptfiles sa ai : Licenses[folder]

[glow=blue,2,300]SAMP.[glow=yellow,2,300]RSP-GAME[glow=red,2,300].NET[/glow][/glow][/glow]

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.