08.09.2011, 19:22
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",10,0);
}
else if(classid == 1) {
gTeam[playerid] = TEAM_AGENTS;
SetPlayerTeam(playerid,TEAM_AGENTS);//Same for this!
GameTextForPlayer(playerid,"~r~Agents",10,0);
}
return 1;
}
Errors:
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(66) : error 017: undefined symbol "SetPlayerTeamFromClass"
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(69) : error 017: undefined symbol "SetPlayerTeamFromClass"
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(70) : warning 217: loose indentation
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(86) : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(86) : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(86) : error 004: function "OnPlayerRequestSpawn" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(91) : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(91) : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(91) : error 004: function "OnPlayerConnect" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(96) : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(96) : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(96) : error 004: function "OnPlayerDisconnect" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(101) : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(101) : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(101) : error 004: function "OnPlayerSpawn" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(11 : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(11 : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(11 : error 004: function "OnPlayerDeath" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(123) : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(123) : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(123) : error 004: function "OnVehicleSpawn" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(12 : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(12 : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(12 : error 004: function "OnVehicleDeath" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(133) : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(133) : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(133) : error 004: function "OnPlayerText" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(13 : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(13 : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(13 : error 004: function "OnPlayerPrivmsg" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(143) : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(143) : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(143) : error 004: function "OnPlayerCommandText" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(145) : error 017: undefined symbol "cmdtext"
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(153) : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(153) : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(153) : error 004: function "OnPlayerInfoChange" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(15 : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(15 : error 029: invalid expression, assumed zero
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
man im to dumb for script loool
{
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",10,0);
}
else if(classid == 1) {
gTeam[playerid] = TEAM_AGENTS;
SetPlayerTeam(playerid,TEAM_AGENTS);//Same for this!
GameTextForPlayer(playerid,"~r~Agents",10,0);
}
return 1;
}
Errors:
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(66) : error 017: undefined symbol "SetPlayerTeamFromClass"
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(69) : error 017: undefined symbol "SetPlayerTeamFromClass"
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(70) : warning 217: loose indentation
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(86) : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(86) : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(86) : error 004: function "OnPlayerRequestSpawn" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(91) : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(91) : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(91) : error 004: function "OnPlayerConnect" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(96) : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(96) : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(96) : error 004: function "OnPlayerDisconnect" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(101) : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(101) : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(101) : error 004: function "OnPlayerSpawn" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(11 : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(11 : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(11 : error 004: function "OnPlayerDeath" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(123) : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(123) : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(123) : error 004: function "OnVehicleSpawn" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(12 : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(12 : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(12 : error 004: function "OnVehicleDeath" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(133) : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(133) : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(133) : error 004: function "OnPlayerText" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(13 : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(13 : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(13 : error 004: function "OnPlayerPrivmsg" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(143) : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(143) : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(143) : error 004: function "OnPlayerCommandText" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(145) : error 017: undefined symbol "cmdtext"
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(153) : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(153) : error 029: invalid expression, assumed zero
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(153) : error 004: function "OnPlayerInfoChange" is not implemented
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(15 : warning 225: unreachable code
C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(15 : error 029: invalid expression, assumed zero
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
man im to dumb for script loool