tag missmatch
#1

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
Reply
#2

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

new Godmode[MAX_PLAYERS][godmodeinfo];
Reply
#3

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
Reply
#4

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
Reply
#5

thx for the quick help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)