0.3 pwn
#1

hi,
this has been pposted about many times and i've tried everything but every npc piece of code doesnt work apart from connecting and IsPlayerNPC. I've changed the pwn to the new one. When i try for example GetMyPos it doesnt recognise it. could i please get some help
thx
Reply
#2

I have read your post 3 times and i still dont get what you mean.
Be more clearly of what you want exactly.

[Doppeyy
Reply
#3

sorry i tried my best i'll just show an example

if im trying to set the position of my npc:

Код:
if(!strcmp(npcname, "guard", true)) //Checking if the NPC's name is Speedy
    {
      SetPlayerSkin(playerid, 164);
	SetMyPos(blah,blah,blah);
    }
when i compile it gives me this to every npc command:

Код:
C:\Program Files\Rockstar Games\GTA San Andreas\SA-MP\gamemodes\first.pwn(88) : error 017: undefined symbol "SetMyPos"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
hope thats better,
thx
Reply
#4

its : SetPlayerPos(playerid,X,Y,Z);
Not : SetMyPos(playerid,X,Y,Z);

[Doppeyy
Reply
#5

but the npc commands from a_npc say GetMyPos(floatx,floaty,floatz); same for SetMyPos
Reply
#6

Quote:
Originally Posted by sanandreas
but the npc commands from a_npc say GetMyPos(floatx,floaty,floatz); same for SetMyPos
You didnt say it was for an npc ?

[Doppeyy
Reply
#7

didnt i? it says npc there, do you know what i do?
Reply
#8

i've tried downloading it again but it still doesnt work! i've done everything every1 has said but nothing seems to work...
Reply
#9

hi,
i have made many npcs already some walking and some driving, commands like GetMyPos and every command in a_npc apart from connectnpc and isplayernpc dont work.
Reply
#10

i have also tried normal player commands from a_samp on my npcs but they only work on me. apply animation doesnt work on the npcs either. could i please have some help.
thx
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)