SA-MP Forums Archive
[Help] 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: [Help] tag mismatch (/showthread.php?tid=331536)



[Help] tag mismatch - CJoao - 05.04.2012

pawn Код:
C:\Users\Patch\Desktop\RC-RP\gamemodes\RP.pwn(25220) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
pawn Код:
new SaveCars[256];
    format(SaveCars,sizeof(SaveCars),"Sistema/Cars/All/%d.ini",vehicleid);
    new Float:health = GetVehicleHealth(vehicleid, health);
    DynamicCars[vehicleid][cHealth] = health; // <--------- warning line why?



Re: [Help] tag mismatch - Psymetrix - 05.04.2012

pawn Код:
new Float:health;
GetVehicleHealth(vehicleid, health);
And make sure cHealth is also a Float.


Re: [Help] tag mismatch - DarkScripter - 05.04.2012

pawn Код:
new SaveCars[256];
    format(SaveCars,sizeof(SaveCars),"Sistema/Cars/All/%d.ini",vehicleid);
    DynamicCars[vehicleid][cHealth] = GetVehicleHealth(vehicleid, health); // <--------- warning line why?
   
    // checks in  enumerator "cHealth" is Float ?