Tag mismatch
#1

pawn Код:
GetPlayerPos(playerid, X, Y, Z);
    DropGun(playerid, GetPlayerWeapon(playerid),GetPlayerAmmo(playerid),X,Y,Z,GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
What's wrong?
Reply
#2

Probably you didn't define X, Y and Z as Floats.
new Float:X,Float:Y,Float:Z;
Reply
#3

No,i've already definied.
Reply
#4

Show the X, Y and Z variable declaration.
Reply
#5

pawn Код:
new Float:X, Float:Y, Float:Z;
Reply
#6

Show us this function DropGun.
Reply
#7

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;
}
Reply
#8

Well.
pawn Код:
stock DropGun(playerid, GunID, GunAmmo,Float:x,Float:X,Float:Y,Float:Z,world,interior)
{
//
}
Reply
#9

Yeah,fixed.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)