SA-MP Forums Archive
tag missmatch - 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: tag missmatch (/showthread.php?tid=499063)



tag missmatch - BigBrainAFK - 06.03.2014

Here are all important lines:

pawn Код:
Godmode[playerid][gOn] = true;
pawn Код:
enum godmodeinfo
{
    Float:gHealth,
    Float:gArmor,
    Bool:gOn
}

new Godmode[MAX_PLAYERS][godmodeinfo];
so i get the tag missmatch error on the line where i want to set it to true


Re: tag missmatch - XK - 06.03.2014

pawn Код:
Godmode[playerid][gOn] = true;
pawn Код:
enum godmodeinfo
{
    Float:gHealth,
    Float:gArmor,
    bool:gOn
}

new Godmode[MAX_PLAYERS][godmodeinfo];



Re: tag missmatch - CutX - 06.03.2014

Quote:
Originally Posted by XK
Посмотреть сообщение
pawn Код:
Godmode[playerid][gOn] = 1;
pawn Код:
enum godmodeinfo
{
    Float:gHealth,
    Float:gArmor,
    gOn,
}

new Godmode[MAX_PLAYER
nope what he wanted was a boolean, not an integral number





Quote:
Originally Posted by BigBrainAFK
Посмотреть сообщение
Here are all important lines:

pawn Код:
Godmode[playerid][gOn] = true;
pawn Код:
enum godmodeinfo
{
    Float:gHealth,
    Float:gArmor,
    Bool:gOn
}

new Godmode[MAX_PLAYERS][godmodeinfo];
so i get the tag missmatch error on the line where i want to set it to true
instead of
Bool:gOn

write
bool:gOn


Re: tag missmatch - XK - 06.03.2014

Cutx,thanks for telling me,i just didnt read this line,i just made it again for him,i didnt notice that he wanted it at a bool,and edited it,and yea it should be bool not Bool because when you are using pawn you have to write everything right


Re: tag missmatch - BigBrainAFK - 06.03.2014

thx for the quick help