08.09.2011, 19:14
and i got this error when i add
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
in OnPlayerRequest Class
public OnPlayerRequestClass(playerid, classid)
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
{
SetPlayerTeamFromClass(playerid, classid);
}
SetPlayerTeamFromClass(playerid, classid)
{
if(classid == 0) {
gTeam[playerid] = TEAM_WORKERS;
SetPlayerTeam(playerid,TEAM_WORKERS);//You can delete this line if you want to allow team killing...
GameTextForPlayer(playerid,"~g~Workers",3000,5);
}
else if(classid == 1) {
gTeam[playerid] = TEAM_AGENTS;
SetPlayerTeam(playerid,TEAM_AGENTS);//Same for this!
GameTextForPlayer(playerid,"~r~Agents",3000,5);
}
return 1;
}
ERROR:
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(64) : error 021: symbol already defined: "SetPlayerCameraPos"
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(6 : error 055: start of function body without function header
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(70) : error 054: unmatched closing brace ("}")
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(229) : warning 203: symbol is never used: "SetPlayerTeamFromClass"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
in OnPlayerRequest Class
public OnPlayerRequestClass(playerid, classid)
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
{
SetPlayerTeamFromClass(playerid, classid);
}
SetPlayerTeamFromClass(playerid, classid)
{
if(classid == 0) {
gTeam[playerid] = TEAM_WORKERS;
SetPlayerTeam(playerid,TEAM_WORKERS);//You can delete this line if you want to allow team killing...
GameTextForPlayer(playerid,"~g~Workers",3000,5);
}
else if(classid == 1) {
gTeam[playerid] = TEAM_AGENTS;
SetPlayerTeam(playerid,TEAM_AGENTS);//Same for this!
GameTextForPlayer(playerid,"~r~Agents",3000,5);
}
return 1;
}
ERROR:
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(64) : error 021: symbol already defined: "SetPlayerCameraPos"
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(6 : error 055: start of function body without function header
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(70) : error 054: unmatched closing brace ("}")
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(229) : warning 203: symbol is never used: "SetPlayerTeamFromClass"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.