Compiled 100% success and Server is crashing when using this command!
#6

lol i just tghout of that. tnx for help bro anyways. it was just under my nose and i didn't seen it lolz

that was a bug which i didn't saw but server is still crashing after i made that.

i also tried the command you made me in pastebin but still server is crashing... also the function of " SavePlayer " is this... maybe its something wrong in it..

Код:
stock SavePlayer(playerid)
{
  new fname[256],playername[256],filestring[256];
	new File: file;
	GetPlayerName(playerid, playername, sizeof(playername));
 	format(fname,sizeof(fname),P_FILE,udb_encode(playername));
 	if(!fexist(fname)) {}
 	else {
	  file = fopen(fname, io_write);
	  if(file) {
	    PlayerInfo[playerid][pcash] = GetPlayerMoney(playerid);
 			format(filestring,sizeof(filestring),"%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%s",playername,PlayerInfo[playerid][vowned],PlayerInfo[playerid][vowner],PlayerInfo[playerid][pass],PlayerInfo[playerid][pcash],PlayerInfo[playerid][bank],PlayerInfo[playerid][admin],PlayerInfo[playerid][bowner],PlayerInfo[playerid][bowned],PlayerInfo[playerid][sjob],PlayerInfo[playerid][suspected],PlayerInfo[playerid][suspectreason]);
  			fwrite(file,filestring);
	  		fclose(file);
		}
	}
	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)