Jump to content
  • 0

Question

Posted

Am adaugat in GM astea pentru a salva wantedul dupa relog. Iar cand compilez imi da don't send la pawno.. aveti idee de ce?

[pawn]#define USER_WANTED_FOLDER "Users/Wanted/%s"

public OnPlayerDisconnect(playerid, reason){

new WantedLevel = GetPlayerWantedLevel(playerid);

new string[256];

new pName[MAX_PLAYER_NAME];

GetPlayerName(playerid, pName, sizeof(pName));

format(string, sizeof(string), USER_WANTED_FOLDER, pName);

if(!dini_Exists(string)){

dini_Create(string);

dini_Set(string, "WantedLevel", WantedLevel);

}else{

dini_Set(string, "WantedLevel", WantedLevel);

}

return 1;

}[/pawn]

[pawn]public OnPlayerConnect(playerid){

new string[256];

new pName[MAX_PLAYER_NAME];

GetPlayerName(playerid, pName, sizeof(pName));

format(string, sizeof(string), USER_WANTED_FOLDER, pName);

if(dini_Exists(string)){

new WantedLevel = dini_Set(string, "WantedLevel", WantedLevel);

SetPlayerWantedLevel(playerid, WantedLevel);

}

return 1;

}[/pawn]

vqqi6h.gif

4 answers to this question

Recommended Posts

Posted

Pai pe la ce ai adaugat nou sau ai sters a ramas o acolada inchisa } in plus undeva. Intr-un mod numarul acoladelor deschise trebuie sa fie egal cu cele inchise.

<a href="http://www.userbars.be"><img src="http://img534.imageshack.us/img534/9098/36589.gif" alt="Free userbars" border="0"></a>

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.