[NEED HELP] with .dini for gangs
#4

Quote:
Originally Posted by (SF)Noobanatior
gteam? or setplayer team?
and are all you file in the same dir? and can i have a example file name
I use SetPlayerTeam. There all in the same directory(scriptfiles/Server. Player files in scriptfiles/user). and "GroveStreet" is on of the names.
Quote:
Originally Posted by Babul
using an array assigned to each team makes it possible to use the file concerning stuff w/o any if-else or switch-case loop...
Код:
new TeamNameFileAddition[][]=
{
	"team_0_none",//senseless, as team0 wont be adressed, coz each array starts at 0, so just ignore that
	"team_1_Grove",
	"team_2_Ballas"
};
your file callback could start like this:
Код:
new filename[64];
format(filename,sizeof(filename),"TeamDirectory/%s.txt",TeamNameFileAddition[gTeam[playerid]]);
//read or write when you opened the file
nd im not quite sure i understand what that is. What exactly does TeamNameFileAddtion do?
Reply


Messages In This Thread
[NEED HELP] with .dini for gangs - by KDlivest954 - 24.06.2010, 03:24
Re: [NEED HELP] with .dini for gangs - by (SF)Noobanatior - 24.06.2010, 04:45
Re: [NEED HELP] with .dini for gangs - by Babul - 24.06.2010, 05:00
Re: [NEED HELP] with .dini for gangs - by KDlivest954 - 24.06.2010, 14:44
Re: [NEED HELP] with .dini for gangs - by Babul - 24.06.2010, 15:43
Re: [NEED HELP] with .dini for gangs - by KDlivest954 - 24.06.2010, 16:11
Re: [NEED HELP] with .dini for gangs - by Babul - 24.06.2010, 16:38
Re: [NEED HELP] with .dini for gangs - by KDlivest954 - 24.06.2010, 16:42

Forum Jump:


Users browsing this thread: 1 Guest(s)