SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/03/2014, 01:02 PM   #1
iThePunisher
Huge Clucker
 
iThePunisher's Avatar
 
Join Date: Nov 2013
Location: "The Wolf's Lair"
Posts: 458
Reputation: 27
Default NPc Scripters check pls

im getting those errors.
pawn Code:
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 Code:
new targetplayer = GetPlayerTargetPlayer(playerid);


and here is line 155
pawn Code:
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
__________________
[IMG][/IMG]
iThePunisher is offline   Reply With Quote
Old 16/03/2014, 04:10 PM   #2
iThePunisher
Huge Clucker
 
iThePunisher's Avatar
 
Join Date: Nov 2013
Location: "The Wolf's Lair"
Posts: 458
Reputation: 27
Default Re: NPc Scripters check pls

can anyone help me in this?
__________________
[IMG][/IMG]
iThePunisher is offline   Reply With Quote
Old 17/03/2014, 01:48 PM   #3
iThePunisher
Huge Clucker
 
iThePunisher's Avatar
 
Join Date: Nov 2013
Location: "The Wolf's Lair"
Posts: 458
Reputation: 27
Default Re: NPc Scripters check pls

bump
__________________
[IMG][/IMG]
iThePunisher is offline   Reply With Quote
Old 17/03/2014, 10:49 PM   #4
iThePunisher
Huge Clucker
 
iThePunisher's Avatar
 
Join Date: Nov 2013
Location: "The Wolf's Lair"
Posts: 458
Reputation: 27
Default Re: NPc Scripters check pls

bump 1000 days passed. -_-
does anybody knows about npc here.?
if yes dont be shy.
__________________
[IMG][/IMG]
iThePunisher is offline   Reply With Quote
Old 17/03/2014, 10:53 PM   #5
Macronix
Huge Clucker
 
Macronix's Avatar
 
Join Date: Jul 2010
Location: Germany
Posts: 478
Reputation: 100
Default AW: NPc Scripters check pls

Do you have these functions (GetPlayerTargetPlayer and "each") in your script? Maybe you need to update your includes directory with a_samp.inc etc.
Macronix is online now   Reply With Quote
Old 17/03/2014, 10:54 PM   #6
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,133
Reputation: 445
Default Re: NPc Scripters check pls

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

- GetPlayerTargetPlayer
- each
Abagail is offline   Reply With Quote
Old 18/03/2014, 05:29 AM   #7
iThePunisher
Huge Clucker
 
iThePunisher's Avatar
 
Join Date: Nov 2013
Location: "The Wolf's Lair"
Posts: 458
Reputation: 27
Default Re: AW: NPc Scripters check pls

Quote:
Originally Posted by Macronix View Post
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 ?
__________________
[IMG][/IMG]
iThePunisher is offline   Reply With Quote
Old 18/03/2014, 08:25 PM   #8
iThePunisher
Huge Clucker
 
iThePunisher's Avatar
 
Join Date: Nov 2013
Location: "The Wolf's Lair"
Posts: 458
Reputation: 27
Default Re: NPc Scripters check pls

bump again.
Please someone help me in this i really need to teach this error.
__________________
[IMG][/IMG]
iThePunisher is offline   Reply With Quote
Old 18/03/2014, 08:30 PM   #9
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,235
Reputation: 1004
Default Re: NPc Scripters check pls

'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 Code:
foreach(new i : Player)

Not sure about the 'GetPlayerTargetPlayer' error. See if fixing the foreach line fixes that also.
__________________
Owner and developer of Mike's Cops and Robbers.

Click here to visit our site and find out more. Click here to view trailers.
Enter referral code SAMPFORUM after registering for a $5000 starting bonus!
MP2 is offline   Reply With Quote
Old 18/03/2014, 10:36 PM   #10
iThePunisher
Huge Clucker
 
iThePunisher's Avatar
 
Join Date: Nov 2013
Location: "The Wolf's Lair"
Posts: 458
Reputation: 27
Default Re: NPc Scripters check pls

damn mate im getting this problem now
pawn Code:
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.
__________________
[IMG][/IMG]
iThePunisher is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 errors. Pro scripters pls check this iThePunisher Scripting Help 0 08/02/2014 10:21 PM
All Good,Best scripters........please check.... deviljingoku Help Archive 18 03/11/2010 01:33 PM
Searching For Scripters [To All Scripters] Drizzy Help Archive 3 06/06/2010 02:14 PM


All times are GMT. The time now is 08:36 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.