09.03.2014, 14:21
Hello guys, I'm having this issue with my script and I can't figure out what is wrong, I'm new to Pawno so perhaps I'm just blind. I was following a TuT without any explenations, this is how it turned out.
Output:
EDIT: It doesn't seem to want to forward the 'forward' it's plain black text, not blue, sup with that?.
Script:
What's my Error?
Tyvrm.
Output:
Код:
SA-MP\gamemodes\Project.pwn(87) : error 029: invalid expression, assumed zero SA-MP\gamemodes\Project.pwn(87) : error 004: function "OnPlayerConnect" is not implemented SA-MP\gamemodes\Project.pwn(92) : warning 225: unreachable code SA-MP\gamemodes\Project.pwn(92) : error 029: invalid expression, assumed zero SA-MP\gamemodes\Project.pwn(92) : error 004: function "OnPlayerDisconnect" is not implemented SA-MP\gamemodes\Project.pwn(97) : warning 225: unreachable code SA-MP\gamemodes\Project.pwn(97) : error 029: invalid expression, assumed zero SA-MP\gamemodes\Project.pwn(97) : error 004: function "OnPlayerSpawn" is not implemented SA-MP\gamemodes\Project.pwn(102) : warning 225: unreachable code SA-MP\gamemodes\Project.pwn(102) : error 029: invalid expression, assumed zero SA-MP\gamemodes\Project.pwn(102) : error 004: function "OnPlayerDeath" is not implemented SA-MP\gamemodes\Project.pwn(107) : warning 225: unreachable code SA-MP\gamemodes\Project.pwn(107) : error 029: invalid expression, assumed zero SA-MP\gamemodes\Project.pwn(107) : error 004: function "OnVehicleSpawn" is not implemented SA-MP\gamemodes\Project.pwn(112) : warning 225: unreachable code SA-MP\gamemodes\Project.pwn(112) : error 029: invalid expression, assumed zero SA-MP\gamemodes\Project.pwn(112) : error 004: function "OnVehicleDeath" is not implemented SA-MP\gamemodes\Project.pwn(117) : warning 225: unreachable code SA-MP\gamemodes\Project.pwn(117) : error 029: invalid expression, assumed zero SA-MP\gamemodes\Project.pwn(117) : error 004: function "OnPlayerText" is not implemented SA-MP\gamemodes\Project.pwn(122) : warning 225: unreachable code SA-MP\gamemodes\Project.pwn(122) : error 029: invalid expression, assumed zero SA-MP\gamemodes\Project.pwn(122) : error 004: function "OnPlayerCommandText" is not implemented SA-MP\gamemodes\Project.pwn(124) : error 017: undefined symbol "cmdtext" SA-MP\gamemodes\Project.pwn(132) : warning 225: unreachable code SA-MP\gamemodes\Project.pwn(132) : error 029: invalid expression, assumed zero SA-MP\gamemodes\Project.pwn(132) : error 004: function "OnPlayerEnterVehicle" is not implemented SA-MP\gamemodes\Project.pwn(137) : warning 225: unreachable code SA-MP\gamemodes\Project.pwn(137) : error 029: invalid expression, assumed zero SA-MP\gamemodes\Project.pwn(137) : error 004: function "OnPlayerExitVehicle" is not implemented SA-MP\gamemodes\Project.pwn(142) : warning 225: unreachable code SA-MP\gamemodes\Project.pwn(142) : error 029: invalid expression, assumed zero SA-MP\gamemodes\Project.pwn(142) : error 004: function "OnPlayerStateChange" is not implemented SA-MP\gamemodes\Project.pwn(147) : warning 225: unreachable code SA-MP\gamemodes\Project.pwn(147) : error 029: invalid expression, assumed zero SA-MP\gamemodes\Project.pwn(147) : error 004: function "OnPlayerEnterCheckpoint" is not implemented SA-MP\gamemodes\Project.pwn(152) : warning 225: unreachable code SA-MP\gamemodes\Project.pwn(152) : error 029: invalid expression, assumed zero Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Script:
Код:
forward SetPlayerTeamFromClass(playerid, classid); public OnPlayerRequestClass(playerid, classid) { if(classid == 0) { gTeam[playerid] = BALLAS; GameTextForPlayer(playerid,"~W~BALLAS",3000,5); // TEXT SetPlayerPos(playerid,1975.2899,-1220.0157,25.0779); // POS OF PLAYER SetPlayerCameraPos(playerid,1959.5686,-1224.0016,24.9909); // CAMERA VIEW SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779); // FACE SetPlayerFacingAngle(playerid,122.4500); SetPlayerColor(playerid,0xA000FFFF); //TEAM COLOR } else if(classid == 1) { gTeam[playerid] = GROVES; GameTextForPlayer(playerid,"~W~GROVE",3000,5); SetPlayerPos(playerid,2500.6060,-1672.1453,13.3512); SetPlayerCameraPos(playerid,2507.0615,-1674.3574,13.3732); SetPlayerCameraLookAt(playerid,2500.6060,-1672.1453,13.3512); SetPlayerFacingAngle(playerid,252.4717); SetPlayerColor(playerid,0x55FF00FF); SetPlayerTeamFromClass(playerid, classid); } return 1; } public SetPlayerTeamFromClass(playerid, classid) {
Tyvrm.