SA-MP Forums Archive
warning 113: tag mismatch - 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: warning 113: tag mismatch (/showthread.php?tid=508998)



warning 113: tag mismatch - quark - 24.04.2014

PHP код:
new Text3D:HouseELabel[MAX_HOUSES]; 
PHP код:
format(stringsizeof(string), "{00BC00}Exit");
HouseELabel[idx] = Create3DTextLabel(string,-1,Houses[idx][ExitX],Houses[idx][ExitY],Houses[idx][ExitZ],15.0,Houses[idx][ExitWorld],1); 
Error on HouseELabel[idx] line:
PHP код:
warning 113tag mismatch 



Re: warning 113: tag mismatch - arakuta - 24.04.2014

Houses[idx][ExitWorld] is a float or a integer?


Re: warning 113: tag mismatch - Aerotactics - 25.04.2014

Quote:
Originally Posted by quark
Посмотреть сообщение
PHP код:
new Text3D:HouseELabel[MAX_HOUSES]; 
PHP код:
format(stringsizeof(string), "{00BC00}Exit");
HouseELabel[idx] = Create3DTextLabel(string,-1,Houses[idx][ExitX],Houses[idx][ExitY],Houses[idx][ExitZ],15.0,Houses[idx][ExitWorld],1); 
Error on HouseELabel[idx] line:
PHP код:
warning 113tag mismatch 
May I ask why you are assigning the text label to a variable? I mean, if all you are doing is creating an informative text label, you are already defining an id with "idx." If you don't plan on doing anything specifically with each text label, assigning them a separate variable is unneeded.


Re: warning 113: tag mismatch - quark - 25.04.2014

@arakuta It's the virtualworld so i guess it's integer

@Aerotactics Same error without the HouseELabel


Re: warning 113: tag mismatch - quark - 26.04.2014

bump


Re: warning 113: tag mismatch - Konstantinos - 26.04.2014

Do you have in the enum ExitX, ExitY and ExitZ with Float: tag? If not, add it. If you have it already, then like arakuta said: ExitWorld is float when it should be integer.


Re: warning 113: tag mismatch - quark - 26.04.2014

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Do you have in the enum ExitX, ExitY and ExitZ with Float: tag? If not, add it. If you have it already, then like arakuta said: ExitWorld is float when it should be integer.
Well , it's correct.

PHP код:
    Float:ExitX,
    
Float:ExitY,
    
Float:ExitZ,
    
ExitWorld
Any other chance ?


Re: warning 113: tag mismatch - Konstantinos - 26.04.2014

Everything seems correct then. The only thing left is "idx" so how did you define that symbol?


Re: warning 113: tag mismatch - quark - 26.04.2014

PHP код:
new idx;
while (
idx sizeof(Houses))

but this is working:

PHP код:
format(stringsizeof(string), "{00BC00}This house is for sale!");
HouseLabel[idx] = Create3DTextLabel(string,-1,Houses[idx][EnterX],Houses[idx][EnterY],Houses[idx][EnterZ],15.0Houses[idx][EnterWorld], 1); 



Re: warning 113: tag mismatch - quark - 26.04.2014

Quote:
Originally Posted by quark
Посмотреть сообщение
but this is working:

PHP код:
format(stringsizeof(string), "{00BC00}This house is for sale!");
HouseLabel[idx] = Create3DTextLabel(string,-1,Houses[idx][EnterX],Houses[idx][EnterY],Houses[idx][EnterZ],15.0Houses[idx][EnterWorld], 1); 
I said this is working, but the HouseELabel is giving error.

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Okay, I found some parts that I missed. You posted:
pawn Код:
Float:ExitX,
Float:ExitY,
Float:ExitZ,
ExitWorld,
but the indexes of the enum are EnterX, EnterY, EnterZ. Do these have the Float: tag too?
The problem is not the Enter but the Exit. Enter is working fine..