Help radar
#1

PHP код:
D:\Scripturi samp\HardRP\gamemodes\larp.pwn(36734) : error 017undefined symbol "VehRadarID"
D:\Scripturi samp\HardRP\gamemodes\larp.pwn(36734) : warning 215expression has no effect
D
:\Scripturi samp\HardRP\gamemodes\larp.pwn(36734) : error 001expected token";"but found ")"
D:\Scripturi samp\HardRP\gamemodes\larp.pwn(36734) : error 029invalid expressionassumed zero
D
:\Scripturi samp\HardRP\gamemodes\larp.pwn(36734) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

script :
PHP код:
//-------------------------------=[radar]=---------------------------------------
    
if(strcmp(cmd"/puneradar"true) == || strcmp(cmd"/pnr"true) == 0)
    {
        if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == 3)
        {
            if (
IsPlayerInAnyVehicle (playerid))
            {
                new 
vehid GetPlayerVehicleID (playerid);
                if (
VehRadarID [vehid] > -1) return 1;
                new 
FloatxFloatyFloatzFloata;
                
GetVehiclePos (vehidxyz);
                
GetVehicleZAngle (vehida);
                
SendClientMessage (playeridCOLOR_YELLOW"Radar has been added successfully.");
                
VehRadarID [vehid] = CreateObject (3670.00.00.00.00.00.0300.0);
                
AttachObjectToVehicle (VehRadarID [vehid], vehid0.20.500.30.00.090.0);
                for (new 
0MAX_PLAYERSi++)
                {
                    if (
IsPlayerInVehicle (ivehid))
                    {
                          
TextDrawShowForPlayer (iRadarHud);
                    }
                }
              }
        }
        else
        {
            
SendClientMessage(playeridCOLOR_GRAD3"Nu faci parte din PD/FBI/NG!");
        }
        return 
1;
    }
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)