SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 07/10/2013, 02:17 PM   #1
Jarrett
Little Clucker
 
Join Date: Jun 2012
Posts: 8
Reputation: 0
Default a lot of errors??(I wrote this myself)

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.
Jarrett is offline   Reply With Quote
Old 07/10/2013, 02:19 PM   #2
EiresJason
Gangsta
 
Join Date: Mar 2013
Location: Dublin.
Posts: 685
Reputation: 76
Default Re: a lot of errors??(I wrote this myself)

Do you have this line at the very top of your script?
pawn Code:
#include <a_samp>
EiresJason is offline   Reply With Quote
Old 07/10/2013, 02:20 PM   #3
Jarrett
Little Clucker
 
Join Date: Jun 2012
Posts: 8
Reputation: 0
Default Re: a lot of errors??(I wrote this myself)

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
Jarrett is offline   Reply With Quote
Old 07/10/2013, 02:24 PM   #4
EiresJason
Gangsta
 
Join Date: Mar 2013
Location: Dublin.
Posts: 685
Reputation: 76
Default Re: a lot of errors??(I wrote this myself)

Make sure the actual include is in the folder 'pawno->includes'.
EiresJason is offline   Reply With Quote
Old 07/10/2013, 02:25 PM   #5
Jarrett
Little Clucker
 
Join Date: Jun 2012
Posts: 8
Reputation: 0
Default Re: a lot of errors??(I wrote this myself)

Quote:
Originally Posted by EiresJason View Post
Make sure the actual include is in the folder 'pawno->includes'.
Yup, it's there.
Jarrett is offline   Reply With Quote
Old 07/10/2013, 02:28 PM   #6
EiresJason
Gangsta
 
Join Date: Mar 2013
Location: Dublin.
Posts: 685
Reputation: 76
Default Re: a lot of errors??(I wrote this myself)

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.
EiresJason is offline   Reply With Quote
Old 07/10/2013, 02:41 PM   #7
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,827
Reputation: 1401
Default Re: a lot of errors??(I wrote this myself)

You miss bracket(s), look before line 167.
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Old 07/10/2013, 02:43 PM   #8
Jarrett
Little Clucker
 
Join Date: Jun 2012
Posts: 8
Reputation: 0
Default Re: a lot of errors??(I wrote this myself)

Thank EiresJason, it's fixed guys
Jarrett is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Some Game Errors Not In Script Errors manpreet_singh Scripting Help 2 07/08/2012 08:55 PM
Facing errors.. Loads of errors.. TheNavigator Scripting Help 8 28/08/2011 09:13 PM
[ERRORS] Errors appear after adding a Gang System. ••• ĤÁĶÁM ••• Help Archive 17 27/10/2010 05:19 PM
Common compiling errors - READ BEFORE POSTING ERRORS Streetplaya Help Archive 0 23/01/2010 11:20 AM
Shows Errors but no errors in this line Kane_Phoenix Help Archive 2 31/03/2009 02:38 PM


All times are GMT. The time now is 07:50 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.