Tag Mismatch ( bool ) - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Tag Mismatch ( bool ) (
/showthread.php?tid=114028)
Tag Mismatch ( bool ) -
UsaBoy91 - 17.12.2009
pawn Код:
enum pInfo
{
// ...
bool:pMuted,
// ...,
};
// OnPlayerLogin
if(!strcmp(key , "Muted" , true))
{
val = ini_GetValue(Data);
PlayerInfo[playerid][pMuted] = strval(val); // warning 213: tag mismatch
}
Re: Tag Mismatch ( bool ) -
Donny_k - 17.12.2009
Remove the 'bool:' tag.
Make sure "val" is a string also although you could use the ini_ function directly.
Re: Tag Mismatch ( bool ) -
UsaBoy91 - 17.12.2009
Lol , i know that ... but i though there's a function ... something like boolval :P
Re: Tag Mismatch ( bool ) -
Donny_k - 17.12.2009
Quote:
Originally Posted by Angel φ
Lol , i know that ... but i though there's a function ... something like boolval :P
|
Lmao dude you fail at blagging but anyway no we don't (use 1 - 0 and remove the bool tag).
Re: Tag Mismatch ( bool ) -
Jefff - 17.12.2009
Код:
PlayerInfo[playerid][pMuted] = bool:strval(val); // warning 213: tag mismatch