Help with GetPlayerPos
#1

Hello people, i was making a gamemode, and at OnPlayerSpawn i wrote
pawn Code:
switch(gClass[playerid])
    {
        case 0:
        {
            SetPlayerColor(playerid, 0x004080FF);
                        new Float:x,Float:y,Float:z;
                        GetPlayerPos(playerid, x, y, z);
                        new Float:angle;
                        PlayerInfo[playerid][pSkin] = GetPlayerSkin(playerid);
                        PlayerInfo[playerid][pModel] = 0;
                        PlayerInfo[playerid][pPos_x] = x;
                        PlayerInfo[playerid][pPos_y] = y;
                        PlayerInfo[playerid][pPos_z] = z;
                        PlayerInfo[playerid][pPos_r] = GetPlayerFacingAngle(playerid, angle);
                        PlayerInfo[playerid][pWeapon1] = GetPlayerWeaponData(playerid, 1, weaponid, ammo);
                        PlayerInfo[playerid][pWeapon2] = GetPlayerWeaponData(playerid, 2, weaponid, ammo);
                        PlayerInfo[playerid][pWeapon3] = GetPlayerWeaponData(playerid, 3, weaponid, ammo);
                        return 1;
        }
    }
    return 1;
}
And i get a warning at
pawn Code:
PlayerInfo[playerid][pPos_x] = x;
PlayerInfo[playerid][pPos_y] = y;
PlayerInfo[playerid][pPos_z] = z;
And It says: warning 213: tag mismatch
Please can you help me guys
thanks you
Reply


Messages In This Thread
Help with GetPlayerPos - by matute - 17.12.2010, 20:24
Re: Help with GetPlayerPos - by Biesmen - 17.12.2010, 20:55
Re: Help with GetPlayerPos - by matute - 17.12.2010, 20:57
Re: Help with GetPlayerPos - by yvoms - 17.12.2010, 20:57
Re: Help with GetPlayerPos - by matute - 17.12.2010, 21:00
Re: Help with GetPlayerPos - by blackwave - 17.12.2010, 21:04
Re: Help with GetPlayerPos - by matute - 17.12.2010, 21:06

Forum Jump:


Users browsing this thread: 1 Guest(s)