[Problem]SendCommand [NPC]
#1

Hey all.

I typed this:
SendCommand(playerid, "/ooc ada");
on the public onplayerspawn, In the if of the NPC.
And when i tested it, it just doesnt work ...
Reply
#2

hmm NPC...... why is it then SendCommand(playerid, instead of SendCommand(npc, (if ur npc named bob then u should type bob there)
Reply
#3

Doesnt work
Reply
#4

You have to use SendCommand and the other NPC commands in the NPC script, not in the gamemode script. Maybe this is the problem.
Reply
#5

How excaly ?
Reply
#6

UP ...
Reply
#7

As I said then, you have to use it from your NPC script if possible.

Instead of SendCommand you could just call the command directly if nothing else works. If you use zcmd or something like this, you can just call the command function. Else copy your command code to a function that you call in OnPlayerCommandText and instead of your SendCommand.
Reply
#8

ok thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)