Help with GetPlayerPos
#1

Yesterday i asked at this forums about a warning i was having with GetPlayerPos(playerid,x,y,z)
I defined them as a float, then i used GetPlayerPos and then i wanted it to save the player coords in a variable.
A guy answered me and he told me to put the x infront of PlayerInfo[playerid][pPos_X] but it keeps not working.
Heres the code:
pawn Code:
public OnPlayerSpawn(playerid)
{
    switch(gClass[playerid])
    {
        case 0:
        {
            SetPlayerColor(playerid, 0x004080FF);
            new Float:x,Float:y,Float:z;
            GetPlayerPos(playerid, x, y, z);
            new Float:angle;
            new skin = GetPlayerSkin(playerid);
            GetPlayerWeaponData(playerid, 1, rweaponid, rammo);
            PlayerInfo[playerid][pWeapon1] = rweaponid;
            PlayerInfo[playerid][pAmmo1] = rammo;
            GetPlayerWeaponData(playerid, 2, sweaponid2, sammo2);
            PlayerInfo[playerid][pWeapon2] = sweaponid2;
            PlayerInfo[playerid][pAmmo2] = sammo2;
            GetPlayerWeaponData(playerid, 3, zweaponid3, zammo3);
            PlayerInfo[playerid][pWeapon3] = zweaponid3;
            PlayerInfo[playerid][pAmmo3] = zammo3;
            PlayerInfo[playerid][pSkin] = skin;
            PlayerInfo[playerid][pModel] = 0;
            PlayerInfo[playerid][pPos_x] = x;//i get a warning here saying Tag Mismatch
            PlayerInfo[playerid][pPos_y] = y;//i get a warning here saying Tag Mismatch
            PlayerInfo[playerid][pPos_z] = z;//i get a warning here saying Tag Mismatch
            PlayerInfo[playerid][pPos_r] = GetPlayerFacingAngle(playerid, angle);
            return 1;
        }
}
    return 1;
}
The problem is that i get a warning saying Tag Mismatch at the lines i commented, i need help with it, its getting me tired and i dont know whats the problem. Thanks you alot people and happy chrismas
Reply


Messages In This Thread
Help with GetPlayerPos - by matute - 18.12.2010, 21:48
Re: Help with GetPlayerPos - by The_Moddler - 18.12.2010, 21:52
Re: Help with GetPlayerPos - by matute - 18.12.2010, 21:55
Re: Help with GetPlayerPos - by The_Moddler - 18.12.2010, 21:58
Re: Help with GetPlayerPos - by matute - 18.12.2010, 22:16

Forum Jump:


Users browsing this thread: 1 Guest(s)