Problem with Foreach - 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: Problem with Foreach (
/showthread.php?tid=659992)
Problem with Foreach -
Raayzeck - 22.10.2018
Buongiorno, signori.
Earlier today I had a problem that was somewhat unusual, well, at least with all the people I spoke to, no one had ever seen this problem, but come on.
I've always used the wonderful include Foreach, however, today I was compiling my gamemode without having made any changes and I got the famous 26 errors, then I thought it was a key problem, I checked the gamemode completely and found nothing, so I started remove some includes and when I removed the famous Foreach guess what? The mistakes are gone. However, I need to use this include and I do not know how to solve such a thing, I have already updated it, I have reached the codes that use it and nothing, could any of you give me a light related to this problem?
Grazie a tutti,
Raayzeck.
Re: Problem with Foreach -
Zeus666 - 22.10.2018
Bonasera signore, che fai tu molto bene?
Please show us what errors do you get
Re: Problem with Foreach -
Raayzeck - 22.10.2018
PHP код:
BPP.pwn(171) : error 010: invalid function or declaration
BPP.pwn(1004) : warning 219: local variable "dia" shadows a variable at a preceding level
BPP.pwn(1004) : warning 219: local variable "mes" shadows a variable at a preceding level
BPP.pwn(1004) : warning 219: local variable "ano" shadows a variable at a preceding level
BPP.pwn(1004) : warning 219: local variable "hora" shadows a variable at a preceding level
BPP.pwn(1004) : warning 219: local variable "minuto" shadows a variable at a preceding level
BPP.pwn(1004) : warning 219: local variable "segundo" shadows a variable at a preceding level
BPP.pwn(1081) : error 010: invalid function or declaration
BPP.pwn(1083) : error 010: invalid function or declaration
BPP.pwn(1084) : error 010: invalid function or declaration
BPP.pwn(1087) : error 021: symbol already defined: "getdate"
BPP.pwn(1089) : error 010: invalid function or declaration
BPP.pwn(1092) : error 021: symbol already defined: "BPPLogs"
BPP.pwn(1094) : error 021: symbol already defined: "format"
BPP.pwn(1095) : error 021: symbol already defined: "ABroadCast"
BPP.pwn(1097) : error 054: unmatched closing brace ("}")
BPP.pwn(1098) : error 010: invalid function or declaration
BPP.pwn(1101) : error 021: symbol already defined: "BPPLogs"
BPP.pwn(1103) : error 021: symbol already defined: "format"
BPP.pwn(1104) : error 021: symbol already defined: "ABroadCast"
BPP.pwn(1106) : error 010: invalid function or declaration
BPP.pwn(1109) : error 021: symbol already defined: "BPPLogs"
BPP.pwn(1111) : error 021: symbol already defined: "format"
BPP.pwn(1112) : error 021: symbol already defined: "ABroadCast"
BPP.pwn(1114) : error 021: symbol already defined: "SendClientMessage"
BPP.pwn(1116) : error 021: symbol already defined: "KickBPP"
BPP.pwn(1118) : error 010: invalid function or declaration
BPP.pwn(1121) : error 021: symbol already defined: "BPPLogs"
BPP.pwn(1123) : error 021: symbol already defined: "format"
BPP.pwn(1124) : error 021: symbol already defined: "ABroadCast"
BPP.pwn(1126) : error 054: unmatched closing brace ("}")
BPP.pwn(1127) : error 010: invalid function or declaration
When I solve the problem appears more. I tried changed my foreach include too, but don't receive results.
Re: Problem with Foreach -
Raayzeck - 22.10.2018
I use with de YSI, and the brace match. It's very strange.