SA-MP Forums Archive
a lot of errors??(I wrote this myself) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: a lot of errors??(I wrote this myself) (/showthread.php?tid=468269)



a lot of errors??(I wrote this myself) - Jarrett - 07.10.2013

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.



Re: a lot of errors??(I wrote this myself) - EiresJason - 07.10.2013

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



Re: a lot of errors??(I wrote this myself) - Jarrett - 07.10.2013

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



Re: a lot of errors??(I wrote this myself) - EiresJason - 07.10.2013

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


Re: a lot of errors??(I wrote this myself) - Jarrett - 07.10.2013

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


Re: a lot of errors??(I wrote this myself) - EiresJason - 07.10.2013

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.


Re: a lot of errors??(I wrote this myself) - Konstantinos - 07.10.2013

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


Re: a lot of errors??(I wrote this myself) - Jarrett - 07.10.2013

Thank EiresJason, it's fixed guys