Underfined symbol
#1

Hello, I have added something from another script but I got errors

Код:
./includes/functions.pwn(17710) : error 017: undefined symbol "GetGVarInt"
./includes/functions.pwn(17712) : error 017: undefined symbol "GetGVarInt"
./includes/functions.pwn(17713) : error 017: undefined symbol "DeleteGVar"
./includes/functions.pwn(17715) : error 017: undefined symbol "GetGVarInt"
./includes/functions.pwn(17717) : error 017: undefined symbol "GetGVarInt"
./includes/functions.pwn(17718) : error 017: undefined symbol "DeleteGVar"
./includes/functions.pwn(17729) : error 017: undefined symbol "SetGVarInt"
./includes/functions.pwn(17735) : error 017: undefined symbol "SetGVarInt"
./includes/functions.pwn(17741) : error 017: undefined symbol "SetGVarInt"
./includes/functions.pwn(17747) : error 017: undefined symbol "SetGVarInt"
./includes/functions.pwn(17755) : error 017: undefined symbol "SetGVarInt"
./includes/functions.pwn(17756) : error 017: undefined symbol "SetGVarInt"
./includes/functions.pwn(17762) : error 017: undefined symbol "SetGVarInt"
about this:

PHP код:
stock ToggleSiren(vehidiTogState)
{
    if(
iTogState == 1)
    {
        if(
GetGVarInt("VehSiren"vehid) != INVALID_OBJECT_ID)
        {
            
DestroyDynamicObject(GetGVarInt("VehSiren"vehid));
            
DeleteGVar("VehSiren"vehid);
        }
        if(
GetGVarInt("VehSiren2"vehid) != INVALID_OBJECT_ID)
        {
            
DestroyDynamicObject(GetGVarInt("VehSiren2"vehid));
            
DeleteGVar("VehSiren2"vehid);
        }
    }
    else
    {
        switch(
GetVehicleModel(vehid))
        {
            case 
402:
            {
                new 
iTempObj CreateDynamicObject(186460.00.00.00.00.00.0, -1, -1, -1200.0);
                
AttachDynamicObjectToVehicle(iTempObjvehid, -0.200.50.40.00.00.0);
                
SetGVarInt("VehSiren"iTempObjvehid);
            }
            case 
411541:
            {
                new 
iTempObj CreateDynamicObject(186460.00.00.00.00.00.0, -1, -1, -1200.0);
                
AttachDynamicObjectToVehicle(iTempObjvehid0.00.20.40.00.00.0);
                
SetGVarInt("VehSiren"iTempObjvehid);
            }
            case 
415:
            {
                new 
iTempObj CreateDynamicObject(186460.00.00.00.00.00.0, -1, -1, -1200.0);
                
AttachDynamicObjectToVehicle(iTempObjvehid, -0.200.300.30.00.00.0);
                
SetGVarInt("VehSiren"iTempObjvehid);
            }
            case 
451:
            {
                new 
iTempObj CreateDynamicObject(186460.00.00.00.00.00.0, -1, -1, -1200.0);
                
AttachDynamicObjectToVehicle(iTempObjvehid, -0.300.40.60.00.00.0);
                
SetGVarInt("VehSiren"iTempObjvehid);
            }
            case 
525:
            {
                new 
iTempObj2 CreateDynamicObject(192940.00.00.00.00.00.0, -1, -1, -1200.0);
                new 
iTempObj3 CreateDynamicObject(192940.00.00.00.00.00.0, -1, -1, -1200.0);
                
AttachDynamicObjectToVehicle(iTempObj2vehid0.55, -0.51.50.00.00.0);
                
AttachDynamicObjectToVehicle(iTempObj3vehid, -0.55, -0.51.50.00.00.0);
                
SetGVarInt("VehSiren"iTempObj2vehid);
                
SetGVarInt("VehSiren2"iTempObj3vehid);
            }
            default:
            {
                new 
iTempObj CreateDynamicObject(186460.00.00.00.00.00.0, -1, -1, -1200.0);
                
AttachDynamicObjectToVehicle(iTempObjvehid, -0.300.40.40.00.00.0);
                
SetGVarInt("VehSiren"iTempObjvehid);
            }
        }
    }
    return 
1;
}
hook OnVehicleSpawn(vehicleid)
{
    if(
GetGVarType("VehSiren"vehicleid)) ToggleSiren(vehicleid1);
}
public 
OnVehicleSirenStateChange(playeridvehicleidnewstate)
{
    if(
DynVeh[vehicleid] != -1)
    {
        for(new 
0!= MAX_DV_OBJECTSi++)
        {
            
ToggleDVSiren(DynVeh[vehicleid], inewstate);
        }
    }
    switch(
newstate)
    {
        case 
0ToggleSiren(vehicleid1);
        case 
1:
        {
            if(!
GetGVarType("VehSiren"vehicleid)) ToggleSiren(vehicleid0);
        }
    }
    return 
1;

How to define this and or is it a plugin/include ?
Reply


Messages In This Thread
Underfined symbol - by IndependentGaming - 18.02.2018, 12:48
Re: Underfined symbol - by Misiur - 18.02.2018, 12:55
Re: Underfined symbol - by IndependentGaming - 18.02.2018, 13:32
Re: Underfined symbol - by Mugala - 18.02.2018, 20:51
Re: Underfined symbol - by kingmk - 18.02.2018, 20:56

Forum Jump:


Users browsing this thread: 2 Guest(s)