[PWN] Problem. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [PWN] Problem. (
/showthread.php?tid=96389)
[PWN] Problem. -
[mad]MLK - 07.09.2009
Hey there, Thanks for reading!.
Well when i try compile my script (Bot Script) I get the following errors:
Код:
C:\Users\user\Desktop\samp03svr_RC3-2_win32\npcmodes\welcomebot.pwn(9) : error 004: function "GetClosestPlayer" is not implemented
C:\Users\user\Desktop\samp03svr_RC3-2_win32\npcmodes\welcomebot.pwn(12) : error 017: undefined symbol "IsPlayerNPC"
C:\Users\user\Desktop\samp03svr_RC3-2_win32\npcmodes\welcomebot.pwn(16) : error 017: undefined symbol "to_others"
C:\Users\user\Desktop\samp03svr_RC3-2_win32\npcmodes\welcomebot.pwn(17) : error 017: undefined symbol "SetPlayerChatBubble"
C:\Users\user\Desktop\samp03svr_RC3-2_win32\npcmodes\welcomebot.pwn(22) : warning 217: loose indentation
C:\Users\user\Desktop\samp03svr_RC3-2_win32\npcmodes\welcomebot.pwn(22) : error 029: invalid expression, assumed zero
C:\Users\user\Desktop\samp03svr_RC3-2_win32\npcmodes\welcomebot.pwn(22) : error 004: function "GetClosestPlayer" is not implemented
C:\Users\user\Desktop\samp03svr_RC3-2_win32\npcmodes\welcomebot.pwn(31) : error 017: undefined symbol "p1"
C:\Users\user\Desktop\samp03svr_RC3-2_win32\npcmodes\welcomebot.pwn(33) : error 017: undefined symbol "GetDistanceBetweenPlayers"
C:\Users\user\Desktop\samp03svr_RC3-2_win32\npcmodes\welcomebot.pwn(44) : error 030: compound statement not closed at the end of file (started at line 9)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
9 Errors.
But i did:
Код:
#include <a_npc>
#include <a_samp>
Could anyone help?. Thanks.
Re: [PWN] Problem. -
klavins - 07.09.2009
open it with new pawno (rmb - open with - choose program - browse - ..new pawno.exe location... - OK)
Re: [PWN] Problem. -
[mad]MLK - 07.09.2009
still the same thing
Re: [PWN] Problem. -
BigJayMalcolm - 07.09.2009
Have you forwarded GetClosestPlayer?
Код:
forward GetClosestPlayer(p1);
Add;
to OnPlayerText
Also have you create GetDistanceBetweenPlayers?
I know what script you are trying to implement.
http://forum.sa-mp.com/index.php?topic=120953.0
I got the same errors - had to add stuff to fix.
Re: [PWN] Problem. -
JaTochNietDan - 07.09.2009
You cannot include a_npc and a_samp in the same script.
a_npc is used only in NPC scripts.