Jump to content
  • 0

problema comanda ganguri


Papana

Question

am acest sistem de ganguri

http://solidfiles.com/d/3e776743a2/

Deci fac un gang dar nu mil arata la /ganguri

daca dau restart la server mi-l arata

aleg skin si arma dar dupa respawn nu mi le da :((

si ce are de mereu trebui sa dau restart la server ca sa imi aratae gangru la /ganguri

o fi din cauza ca e pe dini ?

am incercat sa-l mut pe zcmd

dar am reusit sa fac doar erori si warnuri...

mi-l poate repara cineva va rog ?

/gstats nu merge. ..

	if (strcmp(cmd, "/gstats", true) ==0 )
	{
	    new showstring[256];
	    new rstring[256];
	    new nmember = PlayerInfo[playerid][gang_member];
	    new nrank;
		for(new count = 20;count<MAX_GANGS;count++)
		{
			format(fileZ, sizeof(fileZ),"Ganguri/GANG_%d.ini",count);
			if(dini_Exists(fileZ)){
			if(nmember == GangInfo[count][ID]){
	  		if(nrank == 0){rstring = "N.A";}
			format(fileZ, sizeof(fileZ),"%s",GangInfo[count][Gang_Rank1]);
	  		if(nrank == 1){rstring = fileZ;}
			format(fileZ, sizeof(fileZ),"%s",GangInfo[count][Gang_Rank2]);
			if(nrank == 2){rstring = fileZ;}
			format(fileZ, sizeof(fileZ),"%s",GangInfo[count][Gang_Rank3]);
			if(nrank == 3){rstring = fileZ;}
			format(fileZ, sizeof(fileZ),"%s",GangInfo[count][Gang_Rank4]);
			if(nrank == 4){rstring = fileZ;}
			format(fileZ, sizeof(fileZ),"%s",GangInfo[count][Gang_Rank5]);
			if(nrank == 5){rstring = fileZ;}
			format(fileZ, sizeof(fileZ),"%s",GangInfo[count][Gang_Rank6]);
			if(nrank == 6){rstring = fileZ;}
			if(PlayerInfo[playerid][gang_leader] == GangInfo[count][ID]){rstring = "Leader";}
	    	format(showstring,sizeof(showstring),"Gang: %s\nGang_ID: %d\nGang_Rank: %s\nGang_checkout: %d",GangInfo[count][Name],GangInfo[count][ID],rstring,GangInfo[count][Gang_Cash]);
			ShowPlayerDialog(playerid, DIALOGID_STATS, DIALOG_STYLE_MSGBOX, "Stats",showstring, "-OK-", "--");}}
		}
		return 1;
	}
 	return 0;
}

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Banuiesc ca dupa ce scrii in fisierul respectiv trebuie sa si citesti ceea ce ai scris in variabilele serverului !

Daca spui ca ti le vede numai dupa ce dai restart e clar ca doar atunci se copiaza datele din fiserul asta Ganguri/GANG_%d.ini" in variabilele serverului .

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.