These errors are unable to find (foreach)
#1

Код:
C:\Users\Wiingee\Desktop\Samp Servers\Inter Continental Roleplay\IC-RP\gamemodes\IC-RPv1.8.pwn(4403) : error 017: undefined symbol "foreach"
C:\Users\Wiingee\Desktop\Samp Servers\Inter Continental Roleplay\IC-RP\gamemodes\IC-RPv1.8.pwn(4403) : error 029: invalid expression, assumed zero
C:\Users\Wiingee\Desktop\Samp Servers\Inter Continental Roleplay\IC-RP\gamemodes\IC-RPv1.8.pwn(4403) : error 017: undefined symbol "Player"
C:\Users\Wiingee\Desktop\Samp Servers\Inter Continental Roleplay\IC-RP\gamemodes\IC-RPv1.8.pwn(4403) : fatal error 107: too many error messages on one line
Код:
Line 4403 :foreach(new i: Player) if(GetPlayerVehicleID(i) != 0 && GetPlayerVehicleID(i) == GetPlayerVehicleID(index)) {
Cannot understand this error.
Reply
#2

Do you have the foreach include?
Reply
#3

Quote:
Originally Posted by ThePhenix
Посмотреть сообщение
Do you have the foreach include?
Yes i do.
Reply
#4

Do not open the .pwn file to update your mode because that will happen. Run pawno.exe instead and open your file. Also make sure the foreach.inc is located to the pawno\includes of that main directory which contains your mode you get the error from.
Reply
#5

Quote:
Originally Posted by _Zeus
Посмотреть сообщение
Do not open the .pwn file to update your mode because that will happen. Run pawno.exe instead and open your file.
What do you mean by that?
Reply
#6

Whenever you want to change something to your code, run (pawno directory) pawno.exe > Open > your file. And make sure the foreach.inc exists on the pawno\includes directory.
Reply
#7

Quote:
Originally Posted by _Zeus
Посмотреть сообщение
Whenever you want to change something to your code, run (pawno directory) pawno.exe > Open > your file. And make sure the foreach.inc exists on the pawno\includes directory.
So your trying to say i cannot update my gamemode? And i always open up my gamemode from its directory.

add me on skype idreamzzxo and help me out from there please?
Reply
#8

_Zeus is saying that open your gamemode through the pawno editor then compile your gamemode. Sometimes gamemode could not find the include when you open it directly. I hope you understood.
Reply
#9

Quote:
Originally Posted by Champ
Посмотреть сообщение
_Zeus is saying that open your gamemode through the pawno editor then compile your gamemode. Sometimes gamemode could not find the include when you open it directly. I hope you understood.
Ive done that 100 times before and it hasnt changed a thing.
Reply
#10

I have also got this problem. But it was fixed with this method. Sometimes gamemode could not find the .inc files and you have to find gamemode through pawno editor.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)