SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 04/04/2010, 06:26 PM   #1
CaliforniaRP
Little Clucker
 
Join Date: Aug 2009
Posts: 5
Reputation: 0
Default error 004: function "PlayerToPoint" is not implemented - HELP

I have my gamemode working fine up until I try and add this command I just made
The pastebin of the command code is in a link in the bottom
When I add the command to the script I get over 15 error lines of the same kind.
When I remove the command and compile again it works fine.
Could someone please tell me what is wrong with my script and if so correct the code
Thankyou

PASTEBIN:http://pastebin.com/kAvMfu0j
CaliforniaRP is offline  
Old 04/04/2010, 06:39 PM   #2
Carlton
Gangsta
 
Carlton's Avatar
 
Join Date: Mar 2010
Posts: 687
Reputation: 4
Default Re: error 004: function "PlayerToPoint" is not implemented - HELP

The warning means that you forwarded a function, and used it but didn't create it. Hard to explain, but here's a example.

pawn Code:
forward Test();

main() {
  Test(); // Notice there's no public code.
}
Carlton is offline  
Old 04/04/2010, 06:54 PM   #3
CaliforniaRP
Little Clucker
 
Join Date: Aug 2009
Posts: 5
Reputation: 0
Default Re: error 004: function "PlayerToPoint" is not implemented - HELP

Okay, so how do I fix the command so I can put it in my script and not get the 004 error?
CaliforniaRP is offline  
Old 04/04/2010, 08:13 PM   #4
biltong
Gangsta
 
Join Date: Jan 2010
Posts: 546
Reputation: 0
Default Re: error 004: function "PlayerToPoint" is not implemented - HELP

Find the code for PlayerToPoint, or use the one included in 0.3a:
http://wiki.sa-mp.com/wiki/IsPlayerInRangeOfPoint
__________________
My releases:
[FS]Admin Click - An admin shortcut script. Lots of commands like kick and ban in a few mouse clicks!
[FS]Vehicle Names - Simple script that displays your vehicle's name whenever you enter one.
[GM]Cops 'n Criminals - An unusual TDM.


Not active anymore, PM me if necessary.
biltong is offline  
 

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
"Run time error 19: "File or function is not found" TouR Help Archive 2 18/06/2010 10:04 AM
error 004: function "LoadHouseCars" is not implemented Keeboo13 Help Archive 8 17/02/2010 12:32 AM
error 004: function "PlayerToPoint" is not implemented? braduz Help Archive 2 10/01/2010 08:15 PM
error 004: function "PlayerToPoint" is not implemented addmion Help Archive 3 28/11/2009 02:11 PM
error 004: function "FixHour" is not implemented buonggiorno Help Archive 7 25/11/2009 09:17 PM


All times are GMT. The time now is 01:03 PM.


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