Tag mismatch, REP --;
#1

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

Rep--;? I REFUSE TO HELP.



pC4xk is not declared as a float.
Reply
#3

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

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

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.
Reply
#6

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

Код:
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];
Reply
#8

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)