Tag mismatch - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Tag mismatch (
/showthread.php?tid=316392)
Tag mismatch -
Face9000 - 06.02.2012
pawn Код:
GetPlayerPos(playerid, X, Y, Z);
DropGun(playerid, GetPlayerWeapon(playerid),GetPlayerAmmo(playerid),X,Y,Z,GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
What's wrong?
Re: Tag mismatch -
[XST]O_x - 06.02.2012
Probably you didn't define X, Y and Z as Floats.
new Float:X,Float:Y,Float:Z;
Re: Tag mismatch -
Face9000 - 06.02.2012
No,i've already definied.
Re: Tag mismatch - T0pAz - 06.02.2012
Show the X, Y and Z variable declaration.
Re: Tag mismatch -
Face9000 - 06.02.2012
pawn Код:
new Float:X, Float:Y, Float:Z;
Re: Tag mismatch - T0pAz - 06.02.2012
Show us this function
DropGun.
Re: Tag mismatch -
Face9000 - 06.02.2012
pawn Код:
stock DropGun(playerid, GunID, GunAmmo, world, interior)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
if(GunID != 0 && GunAmmo != 0)
{
for(new i = 0; i < sizeof(DropInfo); i++)
{
if(DropInfo[i][DropGunPosX] == 0.0 && DropInfo[i][DropGunPosY] == 0.0 && DropInfo[i][DropGunPosZ] == 0.0)
{
DropInfo[i][DropGunAmmount][0] = GunID;
DropInfo[i][DropGunAmmount][1] = GunAmmo;
DropInfo[i][DropGunPosX] = X;
DropInfo[i][DropGunPosY] = Y;
DropInfo[i][DropGunPosZ] = Z;
DropInfo[i][DropGunVWorld] = world;
DropInfo[i][DropGunInterior] = interior;
DropObject[i] = CreateDynamicObject(GetGunObjectID(GunID), X, Y, Z-1, 80.0, 0.0, 0.0, world);
return 1;
}
}
return 1;
}
Re: Tag mismatch -
[XST]O_x - 06.02.2012
Well.
pawn Код:
stock DropGun(playerid, GunID, GunAmmo,Float:x,Float:X,Float:Y,Float:Z,world,interior)
{
//
}
Re: Tag mismatch -
Face9000 - 06.02.2012
Yeah,fixed.