SA-MP Forums Archive
NPc Scripters check pls - 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)
+--- Thread: NPc Scripters check pls (/showthread.php?tid=501110)



NPc Scripters check pls - iThePunisher - 16.03.2014

im getting those errors.
pawn Код:
C:\Users\arjan\Desktop\Cops n robbers\filterscripts\NpcRobbery.pwn(73) : error 017: undefined symbol "GetPlayerTargetPlayer"
C:\Users\arjan\Desktop\n robbers\filterscripts\NpcRobbery.pwn(155) : error 017: undefined symbol "each"
C:\Users\arjan\Desktop\Cops n robbers\filterscripts\NpcRobbery.pwn(155) : warning 202: number of arguments does not match definition
C:\Users\arjan\Desktop\Cops n robbers\filterscripts\NpcRobbery.pwn(155) : error 001: expected token: ",", but found "new"
C:\Users\arjan\Desktop\Cops n robbers\filterscripts\NpcRobbery.pwn(155) : error 001: expected token: ";", but found ")"
C:\Users\arjan\Desktop\Cops n robbers\filterscripts\NpcRobbery.pwn(155) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
so here is error line 73
pawn Код:
new targetplayer = GetPlayerTargetPlayer(playerid);

and here is line 155
pawn Код:
stock PlayAlarm(npcid)
{
    new Float: x, Float: y, Float: z;
    GetPlayerPos(npcid, x, y, z);

    each(Players->new i)
    {
if you gonna help me pls explain me where was the problem i want to teach about npc
Thanks in advanced


Re: NPc Scripters check pls - iThePunisher - 16.03.2014

can anyone help me in this?


Re: NPc Scripters check pls - iThePunisher - 17.03.2014

bump


Re: NPc Scripters check pls - iThePunisher - 17.03.2014

bump 1000 days passed. -_-
does anybody knows about npc here.?
if yes dont be shy.


AW: NPc Scripters check pls - Macronix - 17.03.2014

Do you have these functions (GetPlayerTargetPlayer and "each") in your script? Maybe you need to update your includes directory with a_samp.inc etc.


Re: NPc Scripters check pls - Abagail - 17.03.2014

Don't keep bumping please. Show us the following:

- GetPlayerTargetPlayer
- each


Re: AW: NPc Scripters check pls - iThePunisher - 18.03.2014

Quote:
Originally Posted by Macronix
Посмотреть сообщение
Do you have these functions (GetPlayerTargetPlayer and "each") in your script? Maybe you need to update your includes directory with a_samp.inc etc.
no i dont have the fuctions.
can you show meGetPlayerTargetPlayer and "each" functions ?


Re: NPc Scripters check pls - iThePunisher - 18.03.2014

bump again.
Please someone help me in this i really need to teach this error.


Re: NPc Scripters check pls - MP2 - 18.03.2014

'each' should be 'foreach'. Why are you using the arrow operator (->)? This isn't C++. If you've defined it as something (maybe a comma? dunno) they just don't - that's stupid.

Replace that line with this:
pawn Код:
foreach(new i : Player)
Not sure about the 'GetPlayerTargetPlayer' error. See if fixing the foreach line fixes that also.


Re: NPc Scripters check pls - iThePunisher - 18.03.2014

damn mate im getting this problem now
pawn Код:
C:\Users\arjan\Desktop\Cops And Robbers\filterscripts\NpcRobbery.pwn(73) : error 017: undefined symbol "GetPlayerTargetPlayer"
C:\Users\arjan\Desktop\Cops And Robbers\filterscripts\NpcRobbery.pwn(154) : error 017: undefined symbol "foreach"
C:\Users\arjan\Desktop\Cops And Robbers\filterscripts\NpcRobbery.pwn(154) : error 029: invalid expression, assumed zero
C:\Users\arjan\Desktop\Cops And Robbers\filterscripts\NpcRobbery.pwn(154) : error 017: undefined symbol "i"
C:\Users\arjan\Desktop\Cops And Robbers\filterscripts\NpcRobbery.pwn(154) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.