Organize scriptfiles
#8

When i change

Код:
PAWN Code:
"%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d"
into

Код:
"PlayerName=%s\nVehicleOwned=%d\nVehicleOwner=%d\nPassword=%d\nCash=%d\nBank=%d\nAdmin Level=%d\nBusinesOwner=%d\nBusinessOwned=%d\nPhone=%d\nPhone Number=%d"
Errors :
Код:
F:\SANAND~1\Server\GAMEMO~1\BUILDI~2.PWN(2718) : error 075: input line too long (after substitutions)
F:\SANAND~1\Server\GAMEMO~1\BUILDI~2.PWN(2719) : error 017: undefined symbol "pla"
F:\SANAND~1\Server\GAMEMO~1\BUILDI~2.PWN(2720) : error 017: undefined symbol "yerid"
F:\SANAND~1\Server\GAMEMO~1\BUILDI~2.PWN(2720) : error 029: invalid expression, assumed zero
F:\SANAND~1\Server\GAMEMO~1\BUILDI~2.PWN(2720) : error 029: invalid expression, assumed zero
F:\SANAND~1\Server\GAMEMO~1\BUILDI~2.PWN(2720) : fatal error 107: too many error messages on one line
Here is my script
Код:
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),"PlayerName=%s\nVehicleOwned=%d\nVehicleOwner=%d\nPassword=%d\nCash=%d\nBank=%d\nAdmin Level=%d\nBusinesOwner=%d\nBusinessOwned=%d\nPhone=%d\nPhone Number=%d",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][phone],PlayerInfo[playerid][phonenr],PlayerInfo[playerid][niveau]);
  			fwrite(file,filestring);
	  		fclose(file);
		}
	}
Thanks for your help guys
Reply


Messages In This Thread
Organize scriptfiles - by falor - 08.02.2010, 15:37
Re: Organize scriptfiles - by Peep - 08.02.2010, 15:44
Re: Organize scriptfiles - by falor - 08.02.2010, 15:46
Re: Organize scriptfiles - by woot - 08.02.2010, 16:20
Re: Organize scriptfiles - by falor - 08.02.2010, 16:43
Re: Organize scriptfiles - by Joe Staff - 08.02.2010, 16:58
Re: Organize scriptfiles - by falor - 08.02.2010, 17:05
Re: Organize scriptfiles - by falor - 08.02.2010, 18:49
Re: Organize scriptfiles - by MadeMan - 08.02.2010, 19:01
Re: Organize scriptfiles - by falor - 08.02.2010, 19:12

Forum Jump:


Users browsing this thread: 1 Guest(s)