Tag mismatch - SetSpawnInfo
#1

pawn Код:
[758]x = Player[playerid][Float:pPosX];
[759]y = Player[playerid][Float:pPosY];
[760]z = Player[playerid][Float:pPosZ];
[761]a = Player[playerid][Float:pAngle];

(758) : warning 213: tag mismatch
(759) : warning 213: tag mismatch
(760) : warning 213: tag mismatch
(761) : warning 213: tag mismatch

public OnPlayerRequestClass(playerid, classid)
{
    new Float:x,Float:y,Float:z,Float:a;
    x = Player[playerid][Float:pPosX];
    y = Player[playerid][Float:pPosY];
    z = Player[playerid][Float:pPosZ];
    a = Player[playerid][Float:pAngle];
    SetSpawnInfo(playerid, 0, Player[playerid][pSkin], x, y, z, a, -1,0,-1,0,-1,0);
    SpawnPlayer(playerid);
    return 1;
}
I am trying to get rid of the default 'spawn menu'.
Any ideas?
Reply
#2

This Player[playerid][FloatPsX] isn't already assigned as a float? So why assign it again by creating local vars?
Reply
#3

It didn't work either way, I have practically tried everything I can think of.

EDIT:
Line: 757
pawn Код:
SetSpawnInfo(playerid, 0, Player[playerid][pSkin], Player[playerid][Float:pPosX], Player[playerid][Float:pPosY], Player[playerid][Float:pPosZ], Player[playerid][Float:pAngle], -1,0,-1,0,-1,0);
(757) : warning 213: tag mismatch
(757) : warning 213: tag mismatch
(757) : warning 213: tag mismatch
(757) : warning 213: tag mismatch

pawn Код:
enum PlayerData
{
    Float:pPosX,
    Float:pPosY,
    Float:pPosZ,
    Float:pAngle,
};
pawn Код:
new Player[MAX_PLAYERS][PlayerData];
Reply
#4

pawn Код:
x = Player[playerid][Float:pPosX];
    y = Player[playerid][Float:pPosY];
    z = Player[playerid][Float:pPosZ];
    a = Player[playerid][Float:pAngle];
Try removing "Float:" (Player[playerid][pPosX])
Reply
#5

Bloody Legend, Cheers mate, top bloke.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)