help with bot - 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: help with bot (
/showthread.php?tid=269956)
help with bot -
lolumadd_ - 18.07.2011
Well it seems that the source script of the bot (the script in the npcmodes folder) is not even running?
Код:
main(){ print("hey"); }
Does not display..
Код:
public OnNPCEnterVehicle(vehicleid, seatid)
Not getting called...(or any other callback)
What is happening and how can I fix this? Thanks.
(and yes I am using ConnectNPC correctly)
Re: help with bot -
anumaz - 18.07.2011
Do you have a gamemode with a login/register system? If so, you gotta make a "if" event to let him go through it
Re: help with bot -
lolumadd_ - 18.07.2011
Quote:
Originally Posted by anumaz
Do you have a gamemode with a login/register system? If so, you gotta make a "if" event to let him go through it
|
Yes I do, but that isn't the problem. The bot connects and spawns fine. The npcmode script just doesn't do anything.
OnNPCEnterVehicle - not called
OnNPCConnect - not called
main() (in the npcmode script) - not called
So I have a feeling that NOTHING from the bot source is getting executed.
Re: help with bot -
Donya - 18.07.2011
OnNPCModeInit
OnNPCModeExit
OnNPCConnect
OnNPCDisconnect
OnNPCEnterVehicle
OnNPCExitVehicle
don't seem to be called, i just reported it.