Gun "droping" system problems
#10

Well, there's nothing wrong with my code. You must have changed something.

EDIT:
pawn Код:
CMD:pick(playerid, params[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        if(IsValidDynamicObject(Gundrop[i][GunObject]))
        {
            if(IsPlayerInRangeOfPoint(i, 2.0, Gundrop[i][Gunx], Gundrop[i][Guny], Gundrop[i][Gunz]))
            {
                DestroyDynamicObject(Gundrop[i][GunObject]);
                DestroyDynamic3DTextLabel(Gundroplabel[i][GunLabel]);
            }
        }
        else if(IsValidDynamicObject(Gundrop2[i][GunObject1]))
        {
            if(IsPlayerInRangeOfPoint(i, 2.0, Gundrop2[i][Gun1x], Gundrop2[i][Gun1y], Gundrop2[i][Gun1z]))
            {
                DestroyDynamicObject(Gundrop2[i][GunObject1]);
                DestroyDynamic3DTextLabel(Gundroplabel2[i][GunLabel1]);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Gun "droping" system problems - by Supermaxultraswag - 22.03.2015, 10:51
Re: Gun "droping" system problems - by Threshold - 22.03.2015, 11:23
Re: Gun "droping" system problems - by Supermaxultraswag - 23.03.2015, 13:05
Re: Gun "droping" system problems - by Threshold - 23.03.2015, 13:18
Re: Gun "droping" system problems - by Supermaxultraswag - 23.03.2015, 16:27
Re: Gun "droping" system problems - by Threshold - 24.03.2015, 03:24
Re: Gun "droping" system problems - by Supermaxultraswag - 24.03.2015, 16:04
Re: Gun "droping" system problems - by Supermaxultraswag - 27.03.2015, 21:05
Re: Gun "droping" system problems - by Supermaxultraswag - 28.03.2015, 10:16
Re: Gun "droping" system problems - by Threshold - 28.03.2015, 12:54

Forum Jump:


Users browsing this thread: 1 Guest(s)