Undefined symbol
#3

Quote:
Originally Posted by WhiteGhost
Посмотреть сообщение
You are using a forloop
PHP код:
dcmd_pickup(playeridparams[])
{
    new 
string[128];
    for(new 
0MAX_PLAYERSi++)
    {
        if (
IsPlayerInRangeOfPoint(i2.0,DropInfo[i][DropGunPosX],DropInfo[i][DropGunPosY],DropInfo[i][DropGunPosZ]))
        {
            if(
GetPlayerVirtualWorld(i) == DropInfo[i][DropGunVWorld] && GetPlayerInterior(i) == DropInfo[i][DropGunVWorld])
            {
                                 
                new 
sendername[MAX_PLAYER_NAME];
                
GetPlayerRPName(playeridsendernamesizeof(sendername));
                
DestroyDynamicObject(DropObject[i]);
                
GivePlayerWeaponEx(playerid,DropInfo[i][DropGunAmmount][0],DropInfo[i][DropGunAmmount][1]);
                
DropInfo[i][DropGunPosX] = 0.0;
                
DropInfo[i][DropGunPosY] = 0.0;
                
DropInfo[i][DropGunPosZ] = 0.0;
                
DropInfo[i][DropGunAmmount][0] = 0;
                
DropInfo[i][DropGunAmmount][1] = 0;
                
format(stringsizeof(string), "* %s picks up a weapon."sendername);
                
SendLocalMessage(playeridstring10.0COLOR_ACTIONCOLOR_ACTION);
                return 
1;
            }
        }
    }
    return 
1;

So how can I fix this problem? I'm sorry but I suck at this. I still get the problem with the code you gave me. It keeps saying (55234) : error 017: undefined symbol "DropInfo"
Reply


Messages In This Thread
Undefined symbol - by ChristofferHoffmann - 15.07.2016, 15:26
Re: Undefined symbol - by WhiteGhost - 15.07.2016, 15:29
Re: Undefined symbol - by ChristofferHoffmann - 15.07.2016, 15:41
Re: Undefined symbol - by [cS]Owain - 15.07.2016, 15:45
Re: Undefined symbol - by ChristofferHoffmann - 15.07.2016, 15:46
Re: Undefined symbol - by ChristofferHoffmann - 15.07.2016, 15:50

Forum Jump:


Users browsing this thread: 1 Guest(s)