20.08.2014, 14:18
It's giving me these errors;
Q:\Samp Server\gamemodes\jefferson.pwn(118...) error 037: invalid string (possibly non-terminated string)
Q:\Samp Server\gamemodes\jefferson.pwn(118...) warning 215: expression has no effect
Q:\Samp Server\gamemodes\jefferson.pwn(118...) error 001: expected token: ";", but found ")"
Q:\Samp Server\gamemodes\jefferson.pwn(118...) error 029: invalid expression, assumed zero
Q:\Samp Server\gamemodes\jefferson.pwn(118...) fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Here is the script;
#define TEAM_DEFENDERS 1
#define TEAM_ATTACKERS 2
AddPlayerClass(285,2231.7539,-1179.4497,29.8044,45.1304,0,0,0,0,0,0); // Defenders Spawn
AddPlayerClass(179,2207.5635,-1101.0859,31.5547,123.7775,0,0,0,0,0,0); // Attackers Spawn
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2217.3853,-1149.1981,25.7647);
SetPlayerFacingAngle(playerid, 357.9850);
SetPlayerCameraPos(playerid, 2217.3264,-1144.1943,25.7955);
SetPlayerCameraLookAt(playerid, 2217.3853,-1149.1981,25.7647);
switch(classid)
{
case 1:
{
SetPlayerTeam(playerid,TEAM_DEFENDERS);
GameTextForPlayer(playerid,"~b~DEFENDER",5000,3");
return 1;
}
case 2:
{
SetPlayerTeam(playerid,TEAM_ATTACKERS);
GametextForPlayer(playerid,"~b~ATTACKER",5000,3");
return1;
}
}
return 1;
}
Q:\Samp Server\gamemodes\jefferson.pwn(118...) error 037: invalid string (possibly non-terminated string)
Q:\Samp Server\gamemodes\jefferson.pwn(118...) warning 215: expression has no effect
Q:\Samp Server\gamemodes\jefferson.pwn(118...) error 001: expected token: ";", but found ")"
Q:\Samp Server\gamemodes\jefferson.pwn(118...) error 029: invalid expression, assumed zero
Q:\Samp Server\gamemodes\jefferson.pwn(118...) fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Here is the script;
#define TEAM_DEFENDERS 1
#define TEAM_ATTACKERS 2
AddPlayerClass(285,2231.7539,-1179.4497,29.8044,45.1304,0,0,0,0,0,0); // Defenders Spawn
AddPlayerClass(179,2207.5635,-1101.0859,31.5547,123.7775,0,0,0,0,0,0); // Attackers Spawn
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2217.3853,-1149.1981,25.7647);
SetPlayerFacingAngle(playerid, 357.9850);
SetPlayerCameraPos(playerid, 2217.3264,-1144.1943,25.7955);
SetPlayerCameraLookAt(playerid, 2217.3853,-1149.1981,25.7647);
switch(classid)
{
case 1:
{
SetPlayerTeam(playerid,TEAM_DEFENDERS);
GameTextForPlayer(playerid,"~b~DEFENDER",5000,3");
return 1;
}
case 2:
{
SetPlayerTeam(playerid,TEAM_ATTACKERS);
GametextForPlayer(playerid,"~b~ATTACKER",5000,3");
return1;
}
}
return 1;
}