SA-MP Forums Archive
1 Error in different Script need help - 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: 1 Error in different Script need help (/showthread.php?tid=515847)



1 error left - Team_PRO - 28.05.2014

Код:
C:\Users\Matt\Desktop\AutoGate.pwn(20) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
line
Код:
if(IsPlayerInRangeOfPoint(playerid, 15.0, 552.46143, 1660.90344))



Re: 1 Error in different Script need help - Lacamora - 28.05.2014

1- download and add a_player.inc to pawno/include
2- if(IsPlayerInRangeOfPoint(playerid, 15.0, 552.46143, 1660.90344, herree the Z postion ))


Re: 1 Error in different Script need help - Team_PRO - 28.05.2014

still no works


Re: 1 Error in different Script need help - biker122 - 28.05.2014

Where are you using "RemoveBuildingForPlayer"?


Re: 1 Error in different Script need help - Team_PRO - 28.05.2014

Quote:
Originally Posted by biker122
Посмотреть сообщение
Where are you using "RemoveBuildingForPlayer"?
for building


Re: 1 Error in different Script need help - Parallex - 28.05.2014

RemoveBuildingForPlayer should be Under OnPlayerConnect.
Also, make sure you got the a_players.inc file in your Includes folder in Pawn folder.
if(IsPlayerInRangeOfPoint(playerid, X, Y, Z)); there's no need to enter 0.25 there.


Re: 1 Error in different Script need help - biker122 - 28.05.2014

Seriously, I'm asking the place where you're using it. (OnPlayerConnect or someother?)

EDIT:
Saw the above post:
You're totally wrong. You can't use RemoveBuildingForPlayer inside OnGameModeInit. Seriously..
You have to use RemoveBuildingForPlayer codes inside OnPlayerConnect


Re: 1 Error in different Script need help - Team_PRO - 28.05.2014

EDIT: RemoveBuildingForPlayer is fixed now with playerid the gates


Re: 1 Error in different Script need help - Team_PRO - 28.05.2014

help somebody about the gates


Re: 1 Error in different Script need help - biker122 - 28.05.2014

Posting a few lines would be good..