[PWN] Problem.
#1

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.
Reply
#2

open it with new pawno (rmb - open with - choose program - browse - ..new pawno.exe location... - OK)
Reply
#3

still the same thing
Reply
#4

Have you forwarded GetClosestPlayer?

Код:
forward GetClosestPlayer(p1);
Add;

Код:
	new to_others[256];
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.
Reply
#5

You cannot include a_npc and a_samp in the same script.

a_npc is used only in NPC scripts.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)