SA-MP Forums Archive
Tag mismatch, REP --; - 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 mismatch, REP --; (/showthread.php?tid=335399)



Tag mismatch, REP --; - Dan. - 18.04.2012

pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
PlayerInfo[playerid][pC4xk] = x; // LINE 1159!
(1159) : warning 213: tag mismatch


Re: Tag mismatch, REP --; - MP2 - 18.04.2012

Rep--;? I REFUSE TO HELP.



pC4xk is not declared as a float.


Re: Tag mismatch, REP --; - Twisted_Insane - 18.04.2012

@MP2

Why should pC4xk be a float? He is givin' the value to the float variable 'x'. There is something wrong at that place where you've defined that variable.


Re: Tag mismatch, REP --; - [HiC]TheKiller - 18.04.2012

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
@MP2

Why should pC4xk be a float? He is givin' the value to the float variable 'x'. There is something wrong at that place where you've defined that variable.
As far as I can see, the variable that is been given a value is PlayerInfo[playerid][pC4xk]. The problem in this case is most probably PlayerInfo[playerid][pC4xk] is just defined as a integer rather than a float in the PlayerInfo enum.


Re: Tag mismatch, REP --; - Biesmen - 18.04.2012

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
@MP2

Why should pC4xk be a float?
You can't store a float in an integer.. If you want to store this float in an integer, use Floatround.


Re: Tag mismatch, REP --; - MP2 - 18.04.2012

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
@MP2

Why should pC4xk be a float? He is givin' the value to the float variable 'x'. There is something wrong at that place where you've defined that variable.
You're trying to store a float in an integer.


Re: Tag mismatch, REP --; - iPLEOMAX - 18.04.2012

Код:
enum e_my_big_shiny_enum_conostantas
{
    Float:pC4xk //<-- Use the Float tag on "pC4xk"!
    //Other..
};

new PlayerInfo[MAX_PLAYERS][e_my_big_shiny_enum_conostantas];



Re: Tag mismatch, REP --; - Jonny5 - 18.04.2012

I know im off topic..

Quote:
Originally Posted by ******
Посмотреть сообщение
How do you intend to take away rep from people? There is no such function on the forums, and why would anyone help anyway?
I personally took it as a joke(not sure if thats what this guy meant)
kinda making fun of all the +rep posts! lol

made us all look anyway,
btw im stealing your sig also!