24.06.2010, 14:44
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 |
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" }; Код:
new filename[64]; format(filename,sizeof(filename),"TeamDirectory/%s.txt",TeamNameFileAddition[gTeam[playerid]]); //read or write when you opened the file |