SA-MP Forums Archive
[Help-me] Errors Compilation Pawno - 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: [Help-me] Errors Compilation Pawno (/showthread.php?tid=631336)



[Help-me] Errors Compilation Pawno - marcelomacsantos - 27.03.2017

Hello, help-me? errors compilation pawno, After putting the command / admins started to give this error, can you help me the solution?

I took command of another GameMode, I'm Brazilian using Translator.

Errors below

__________________________________________________ ________________________________________________

C:\Users\ASUS\Downloads\BPL\gamemodes\BPL.pwn(214) : error 017: undefined symbol "foreach"
C:\Users\ASUS\Downloads\BPL\gamemodes\BPL.pwn(216) : error 017: undefined symbol "PlayerInfo"
C:\Users\ASUS\Downloads\BPL\gamemodes\BPL.pwn(216) : error 017: undefined symbol "i"
C:\Users\ASUS\Downloads\BPL\gamemodes\BPL.pwn(216) : error 029: invalid expression, assumed zero
C:\Users\ASUS\Downloads\BPL\gamemodes\BPL.pwn(216) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

__________________________________________________ ________________________________________________



Give the error when I put the command


Command's:

http://imgur.com/a/kmi76

Solve for me there


Re: [Help-me] Errors Compilation Pawno - coool - 27.03.2017

You don't have foreach include so use this instead
Код:
for(new i; i < MAX_PLAYERS; i++)
And the second error is that you don't have defined PlayerInfo. So instead of this you should have another variable defined replace PlayerInfo to that one, try pInfo most scripters use that


Re: [Help-me] Errors Compilation Pawno - Luis- - 27.03.2017

This is why you don't just copy and paste things from one gamemode to another, it isn't plug and play.


Re: [Help-me] Errors Compilation Pawno - marcelomacsantos - 27.03.2017

@cool How can you contact me? For you help me in this I do not know how to pawno right


Re: [Help-me] Errors Compilation Pawno - coool - 27.03.2017

Quote:
Originally Posted by marcelomacsantos
Посмотреть сообщение
@cool How can you contact me? For you help me in this I do not know how to pawno right
Instead of contacting me post you problem in this section and get explained answer.