17.12.2010, 20:24
Hello people, i was making a gamemode, and at OnPlayerSpawn i wrote
And i get a warning at
And It says: warning 213: tag mismatch
Please can you help me guys
thanks you
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;
}
pawn Code:
PlayerInfo[playerid][pPos_x] = x;
PlayerInfo[playerid][pPos_y] = y;
PlayerInfo[playerid][pPos_z] = z;
Please can you help me guys
thanks you