Help some warning?? Dont know how fix. :( - 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 some warning?? Dont know how fix. :( (
/showthread.php?tid=614012)
Help some warning?? Dont know how fix. :( -
b0b - 03.08.2016
PHP код:
THIS the line--
if(Logged[playerid] == true)
And WARNING:
PHP код:
(1139) : warning 213: tag mismatch
Re: Help some warning?? Dont know how fix. :( -
AndySedeyn - 03.08.2016
How is that variable declared?
Re: Help some warning?? Dont know how fix. :( -
Shinja - 03.08.2016
Its should be declared as
PHP код:
bool:Logged[MAX_PLAYERS]
i guess you declared it as
PHP код:
Logged[MAX_PLAYERS]
It still can be used like that, but not using true/false
1/0
Re: Help some warning?? Dont know how fix. :( -
AndySedeyn - 03.08.2016
<False information>
Re: Help some warning?? Dont know how fix. :( -
b0b - 03.08.2016
PHP код:
new
noooc = 0,
Logged[MAX_PLAYERS],
gOoc[ MAX_PLAYERS ]
;
iuse like this
Re: Help some warning?? Dont know how fix. :( -
Shinja - 03.08.2016
Knew it, it should be like this
PHP код:
new
noooc = 0,
bool:Logged[MAX_PLAYERS],
gOoc[ MAX_PLAYERS ]
;
Re: Help some warning?? Dont know how fix. :( -
b0b - 03.08.2016
PHP код:
public OnPlayerConnect(playerid)
{
gOoc[ playerid ] = 0; Logged[ playerid ] = 0; aDuty[ playerid ] = 0;
And how i change this W?
Re: Help some warning?? Dont know how fix. :( -
Shinja - 03.08.2016
Make it false
By the way, you could also keep it Logged[MAX_PLAYERS] but in check's you should use
PHP код:
if(Logged[MAX_PLAYERS] == 1)
Not true/false, just don't mix bools with integers
Re: Help some warning?? Dont know how fix. :( -
b0b - 03.08.2016
Quote:
Originally Posted by Shinja
Make it false
By the way, you could also keep it Logged[MAX_PLAYERS] but in check's you should use
PHP код:
if(Logged[MAX_PLAYERS] == 1)
Not true/false, just don't mix bools with integers
|
PHP код:
array index out of bounds (variable "Logged")
Re: Help some warning?? Dont know how fix. :( -
Shinja - 03.08.2016
Huh? try to find all "Logged" in your script, all must be true/false