Yup, another "tag mismatch" thread.
#7

Quote:
Originally Posted by s0nic
Посмотреть сообщение
Yes I would say the guide explains pretty much every aspect.
And even though I didn't quite understand what you were fully trying to achieve with that function..
If you do ever try to check a variables data by passing it through a function like that you can handle it like this:
pawn Код:
stock GetGeoString(playerid, variable)
{
    new str[12];
    if(GC[playerid][geos:variable] == 1){str = "FOUND!";}
    else {str = "Not Found";}
    return str;
}
As you can see you need to point it to the enum that the variable is using.
The names within a enum are basically placeholders, each correspond to a number
Ex:
easy1, = 0
easy2, = 1
easy3, = 2
So when you are trying to do GetGeoString(playerid, easy1) its going to read like GetGeoString(0, 0) which is why GC[playerid][variable] wouldn't have worked as it would be expecting a placeholder name but a integer was being passed through and if you point to the enum it then you shall be good to go.

Hopefully you can understand what I was trying to explain..
Yes I understand. And I'm assuming you read the guide cover to cover if you knew how to do that lol
Reply


Messages In This Thread
Yup, another "tag mismatch" thread. - by Aerotactics - 05.06.2014, 05:42
Re: Yup, another "tag mismatch" thread. - by BroZeus - 05.06.2014, 05:50
Re: Yup, another "tag mismatch" thread. - by Aerotactics - 05.06.2014, 06:15
Re: Yup, another "tag mismatch" thread. - by Aerotactics - 05.06.2014, 09:35
Re: Yup, another "tag mismatch" thread. - by Aerotactics - 05.06.2014, 11:03
Re: Yup, another "tag mismatch" thread. - by s0nic - 05.06.2014, 21:20
Re: Yup, another "tag mismatch" thread. - by Aerotactics - 06.06.2014, 02:27

Forum Jump:


Users browsing this thread: 1 Guest(s)