Scripting Help [TEAMS/GANGS]
#18

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.
Reply


Messages In This Thread
Scripting Help [TEAMS/GANGS] - by Santox14 - 08.09.2011, 18:10
Re: Scripting Help [TEAMS/GANGS] - by judothijs - 08.09.2011, 18:15
Re: Scripting Help [TEAMS/GANGS] - by austin070 - 08.09.2011, 18:16
AW: Scripting Help [TEAMS/GANGS] - by Santox14 - 08.09.2011, 18:18
Re: Scripting Help [TEAMS/GANGS] - by Daniel-92 - 08.09.2011, 18:22
AW: Scripting Help [TEAMS/GANGS] - by Santox14 - 08.09.2011, 18:22
Re: Scripting Help [TEAMS/GANGS] - by judothijs - 08.09.2011, 18:27
AW: Scripting Help [TEAMS/GANGS] - by Santox14 - 08.09.2011, 18:42
Re: Scripting Help [TEAMS/GANGS] - by Daniel-92 - 08.09.2011, 18:47
AW: Scripting Help [TEAMS/GANGS] - by Santox14 - 08.09.2011, 18:54
Respuesta: Scripting Help [TEAMS/GANGS] - by Daniel-92 - 08.09.2011, 19:00
Re: Scripting Help [TEAMS/GANGS] - by AeroBlast - 08.09.2011, 19:03
AW: Scripting Help [TEAMS/GANGS] - by Santox14 - 08.09.2011, 19:05
Re: Scripting Help [TEAMS/GANGS] - by Daniel-92 - 08.09.2011, 19:06
Re: Scripting Help [TEAMS/GANGS] - by AeroBlast - 08.09.2011, 19:07
AW: Scripting Help [TEAMS/GANGS] - by Santox14 - 08.09.2011, 19:10
Re: Scripting Help [TEAMS/GANGS] - by AeroBlast - 08.09.2011, 19:13
AW: Scripting Help [TEAMS/GANGS] - by Santox14 - 08.09.2011, 19:14
Re: Scripting Help [TEAMS/GANGS] - by AeroBlast - 08.09.2011, 19:16
AW: Scripting Help [TEAMS/GANGS] - by Santox14 - 08.09.2011, 19:22
Re: Scripting Help [TEAMS/GANGS] - by AeroBlast - 08.09.2011, 19:25
AW: Scripting Help [TEAMS/GANGS] - by Santox14 - 08.09.2011, 19:28
Re: Scripting Help [TEAMS/GANGS] - by AeroBlast - 08.09.2011, 19:30
AW: Scripting Help [TEAMS/GANGS] - by Santox14 - 08.09.2011, 19:34
AW: Scripting Help [TEAMS/GANGS] - by Santox14 - 08.09.2011, 19:36
AW: Scripting Help [TEAMS/GANGS] - by Santox14 - 08.09.2011, 19:38
Re: Scripting Help [TEAMS/GANGS] - by AeroBlast - 08.09.2011, 19:39
AW: Scripting Help [TEAMS/GANGS] - by Santox14 - 08.09.2011, 19:42
Re: Scripting Help [TEAMS/GANGS] - by AeroBlast - 08.09.2011, 20:01
AW: Scripting Help [TEAMS/GANGS] - by Santox14 - 08.09.2011, 20:12
Re: Scripting Help [TEAMS/GANGS] - by MadeMan - 08.09.2011, 20:15
Re: Scripting Help [TEAMS/GANGS] - by judothijs - 10.09.2011, 15:24

Forum Jump:


Users browsing this thread: 4 Guest(s)