[Ajuda] Problema com fexist
#1

Код:
			new st[128];
			format(st,sizeof(st),"Gangs\%d.ini",arrayPlayer[playerid][PGang]);
			if(fexist(st))
			{
		    	if(arrayPlayer[playerid][PGang] > 0)
  				{
  					SetPlayerColor(playerid, GangCores[arrayPlayer[playerid][PGang]]);
					playerGang[playerid] = arrayPlayer[playerid][PGang];
				}
			}
			else
			{
				new zarquivo[128];
			    format(zarquivo,128, "Contas/%s.ini", pName);
		        new INI:zpConta = INI_Open(zarquivo);
			    INI_WriteInt(zpConta,"Gang",0);
			    INI_WriteInt(zpConta,"GangCargo",299);
			    INI_Close(zpConta);
			}
oque hб nesse cуdigo, que o mesmo o usuбrio tendo gang, ele executa o else?
Reply
#2

Pra que vocк tб verificando se o arquivo existe e nгo tб usando nada de dentro desse arquivo?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)