03.08.2009, 07:33
Hey guys!!
I have my Tokyo Drift Server (i know another one....but still) almost ready to get hosted and stuff,
But!! I have this slight error...
I copied it from the gangwars and area 51 script but both return an error... i have the:
new gTeam [MAXPLAYERS] at the top of my page.. along with other gTEAM ones but when i get to:
SetPLayerTeamfromClass i get this error:
*****\samp02Xserver.win32\gamemodes\RealDrift.pwn( 424) : error 017: undefined symbol "gTeam"
*****\samp02Xserver.win32\gamemodes\RealDrift.pwn( 424) : warning 215: expression has no effect
*****\samp02Xserver.win32\gamemodes\RealDrift.pwn( 424) : error 001: expected token: ";", but found "]"
*****\samp02Xserver.win32\gamemodes\RealDrift.pwn( 424) : error 029: invalid expression, assumed zero
*****\samp02Xserver.win32\gamemodes\RealDrift.pwn( 424) : fatal error 107: too many error messages on one line
and this is what i have under the setplaywerTeamfromClass:
if(classid == 0 || classid == 1 || classid == 2) {
gTeam[playerid] = TEAM_DRIFT;
} else if(classid == 3 || classid == 4 || classid == 5 || classid == 6 || classid == 7 || classid ==
{
gTeam[playerid] = TEAM_SEAN;
} else if(classid == 9 || classid == 10 || classid == 11 || classid == 12 || classid == 13) {
gTeam[playerid] = TEAM_NEUTRAL;
} else if(classid == 14 || classid == 15 || classid == 16 || classid == 17 || classid == 18 || classid == 19 || classid == 20) {
gTeam[playerid] = TEAM_OTHER;
} else if(classid == 21 || classid == 22 || classid == 23 || classid == 24 || classid == 25 || classid == 26 || classid == 27 || classid == 28 || classid == 29 || classid == 30 || classid == 31 || classid == 32 || classid == 33 || classid == 34 || classid == 35 || classid == 36 || classid == 37 || classid == 38 || classid == 39 || classid == 40 || classid == 41 || classid == 42 || classid == 43 || classid == 44) {
gTeam[playerid] = TEAM_ADMIN;
}
}
and i have checked that it's exactly the same as the area 51 stuff and the other teams but only Team_DRIFT comes up with the error!!
Please help!!!
NOTE: line 424 is
but this doesn't happen to any other... and atm nothing is wrong as it is taken from the area 51 script and the gangwars script...
I have my Tokyo Drift Server (i know another one....but still) almost ready to get hosted and stuff,
But!! I have this slight error...
I copied it from the gangwars and area 51 script but both return an error... i have the:
new gTeam [MAXPLAYERS] at the top of my page.. along with other gTEAM ones but when i get to:
SetPLayerTeamfromClass i get this error:
*****\samp02Xserver.win32\gamemodes\RealDrift.pwn( 424) : error 017: undefined symbol "gTeam"
*****\samp02Xserver.win32\gamemodes\RealDrift.pwn( 424) : warning 215: expression has no effect
*****\samp02Xserver.win32\gamemodes\RealDrift.pwn( 424) : error 001: expected token: ";", but found "]"
*****\samp02Xserver.win32\gamemodes\RealDrift.pwn( 424) : error 029: invalid expression, assumed zero
*****\samp02Xserver.win32\gamemodes\RealDrift.pwn( 424) : fatal error 107: too many error messages on one line
and this is what i have under the setplaywerTeamfromClass:
if(classid == 0 || classid == 1 || classid == 2) {
gTeam[playerid] = TEAM_DRIFT;
} else if(classid == 3 || classid == 4 || classid == 5 || classid == 6 || classid == 7 || classid ==

gTeam[playerid] = TEAM_SEAN;
} else if(classid == 9 || classid == 10 || classid == 11 || classid == 12 || classid == 13) {
gTeam[playerid] = TEAM_NEUTRAL;
} else if(classid == 14 || classid == 15 || classid == 16 || classid == 17 || classid == 18 || classid == 19 || classid == 20) {
gTeam[playerid] = TEAM_OTHER;
} else if(classid == 21 || classid == 22 || classid == 23 || classid == 24 || classid == 25 || classid == 26 || classid == 27 || classid == 28 || classid == 29 || classid == 30 || classid == 31 || classid == 32 || classid == 33 || classid == 34 || classid == 35 || classid == 36 || classid == 37 || classid == 38 || classid == 39 || classid == 40 || classid == 41 || classid == 42 || classid == 43 || classid == 44) {
gTeam[playerid] = TEAM_ADMIN;
}
}
and i have checked that it's exactly the same as the area 51 stuff and the other teams but only Team_DRIFT comes up with the error!!
Please help!!!
NOTE: line 424 is
Код:
gTeam[playerid] = TEAM_DRIFT;