a lot of errors??(I wrote this myself)
#1

I don't understand, a lot of these errors, I haven't even change their original state..

pawn Code:
167 - public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
172 - public OnPlayerExitVehicle(playerid, vehicleid)
177 - SetVehicleHealth(vehicleid,0);
181 - SetVehicleHealth(vehicleid,0);
185 - SetVehicleHealth(vehicleid,0);
189 - SetVehicleHealth(vehicleid,0);
194 - public OnPlayerStateChange(playerid, newstate, oldstate)
196 - if(newstate == PLAYER_STATE_DRIVER)
223 - public OnPlayerEnterCheckpoint(playerid)
228 - public OnPlayerLeaveCheckpoint(playerid)
233 - public OnPlayerEnterRaceCheckpoint(playerid)
238 - public OnPlayerLeaveRaceCheckpoint(playerid)
243 - public OnRconCommand(cmd[])
248 - public OnPlayerRequestSpawn(playerid)
253 - public OnObjectMoved(objectid)
258 - public OnPlayerObjectMoved(playerid, objectid)
pawn Code:
(167) : error 029: invalid expression, assumed zero
(167) : error 004: function "OnPlayerEnterVehicle" is not implemented
(172) : error 029: invalid expression, assumed zero
(172) : error 004: function "OnPlayerExitVehicle" is not implemented
(177) : error 017: undefined symbol "vehicleid"
(181) : error 017: undefined symbol "vehicleid"
(185) : error 017: undefined symbol "vehicleid"
(189) : error 017: undefined symbol "vehicleid"
(194) : error 029: invalid expression, assumed zero
(194) : error 004: function "OnPlayerStateChange" is not implemented
(196) : error 017: undefined symbol "newstate"
(223) : error 029: invalid expression, assumed zero
(223) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
(228) : error 029: invalid expression, assumed zero
(228) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
(233) : error 029: invalid expression, assumed zero
(233) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
(238) : error 029: invalid expression, assumed zero
(238) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
(243) : error 029: invalid expression, assumed zero
(243) : error 004: function "OnRconCommand" is not implemented
(248) : error 029: invalid expression, assumed zero
(248) : error 004: function "OnPlayerRequestSpawn" is not implemented
(253) : error 029: invalid expression, assumed zero
(253) : error 004: function "OnObjectMoved" is not implemented
(258) : error 029: invalid expression, assumed zero

26 Errors.
Reply
#2

Do you have this line at the very top of your script?
pawn Code:
#include <a_samp>
Reply
#3

Quote:
Originally Posted by EiresJason
View Post
Do you have this line at the very top of your script?
pawn Code:
#include <a_samp>
Yep,

pawn Code:
#include <a_samp>

new Mule;
new Yankee;
new Boxville;
new Benson;
#define red 0xff0000ff
Reply
#4

Make sure the actual include is in the folder 'pawno->includes'.
Reply
#5

Quote:
Originally Posted by EiresJason
View Post
Make sure the actual include is in the folder 'pawno->includes'.
Yup, it's there.
Reply
#6

Ok.

What you should do is this:

Step 1: Go to your server's directory and then into the folder pawno.
Step 2: Click on the pawno application, open up your GM and then re-compile.
Reply
#7

You miss bracket(s), look before line 167.
Reply
#8

Thank EiresJason, it's fixed guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)