26 Compile Errors. Help needed
#1

Код:
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(6317) : error 017: undefined symbol "IsPlayerInRangeOfVehicle"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(8735) : error 017: undefined symbol "IsNumeric"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(8853) : error 017: undefined symbol "RemovePlayerWeapon"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(9296) : error 017: undefined symbol "MainMenuUpdateForPlayer"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(9893) : error 017: undefined symbol "RemovePlayerWeapon"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(10122) : error 017: undefined symbol "UnloadPlayerVehicles"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(11801) : warning 204: symbol is assigned a value that is never used: "string"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(12520) : error 004: function "firstaidexpire" is not implemented
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(12902) : error 017: undefined symbol "IsPlayerAimingAt"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(12931) : error 017: undefined symbol "IsPlayerAimingAt"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(13075) : error 004: function "PickUpC4" is not implemented
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(13450) : error 017: undefined symbol "GetPlayerVehicle"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(13511) : error 017: undefined symbol "GetGangVehicle"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(13860) : error 017: undefined symbol "GetCarDealershipVehicleId"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(13861) : error 017: undefined symbol "GetCarDealershipVehicleId"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(13864) : error 017: undefined symbol "GetCarDealershipId"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(18847) : error 017: undefined symbol "LoadGangVehicles"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(24132) : warning 202: number of arguments does not match definition
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(26364) : error 017: undefined symbol "SkinDelay"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(26398) : error 017: undefined symbol "LoadPlayerVehicles"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(28582) : warning 204: symbol is assigned a value that is never used: "string"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(28609) : warning 204: symbol is assigned a value that is never used: "string"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(28900) : error 017: undefined symbol "IsPlayerInRangeOfVehicle"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(29421) : error 017: undefined symbol "CreateRoadblock"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(29431) : error 017: undefined symbol "CreateRoadblock"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(29441) : error 017: undefined symbol "CreateRoadblock"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(29452) : error 017: undefined symbol "CreateRoadblock"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(29462) : error 017: undefined symbol "CreateRoadblock"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(29472) : error 017: undefined symbol "CreateRoadblock"
D:\user\Desktop\SCRIPT\SCRIPT\gamemodes\GM.pwn(29481) : error 017: undefined symbol "CreateRoadblock"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#2

We cannot help you if you dont post your code.
Reply
#3

Код:
ShowMainMenuGUI(playerid)
{
	InsideMainMenu[playerid] = true;

	MainMenuUpdateForPlayer(playerid);
	for(new i = 0; i < 10; i++)
	{
		TextDrawShowForPlayer(playerid, MainMenuTxtdraw[i]);
	}
}
Код:
CMD:deploy(playerid, params[])
{
    if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pLeader] == 7)
    {
        new rb;
        if(sscanf(params, "d", rb))
        {
            SendClientMessage(playerid, COLOR_WHITE, "USAGE:  [Roadblock ID]");
            SendClientMessage(playerid, COLOR_BLUE, "Available Roadblocks:");
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "| 1: Small Roadblock");
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "| 2: Medium Roadblock");
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "| 3: Big Roadblock");
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "| 4: Cone");
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "| 5: No Tresspassing Sign");
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "| 6: Line Closed Sign");
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "| 7: Hard Heavy Barrel");
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "| 8: Road Barrier");
            return 1;
        }
        if (rb == 1)
        {
            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
            new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
            GetPlayerPos(playerid, plocx, plocy, plocz);
            GetPlayerFacingAngle(playerid,ploca);
            CreateRoadblock(1459,plocx,plocy,plocz,ploca);
            GameTextForPlayer(playerid,"~w~Roadblock ~b~Placed!",3000,1);
            return 1;
        }
        else if (rb == 2)
        {
            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
            new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
            GetPlayerPos(playerid, plocx, plocy, plocz);
            GetPlayerFacingAngle(playerid,ploca);
            CreateRoadblock(978,plocx,plocy,plocz+0.6,ploca);
            GameTextForPlayer(playerid,"~w~Roadblock ~b~Placed!",3000,1);
            return 1;
        }
        else if (rb == 3)
        {
            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
            new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
            GetPlayerPos(playerid, plocx, plocy, plocz);
            GetPlayerFacingAngle(playerid,ploca);
            CreateRoadblock(981,plocx,plocy,plocz+0.9,ploca+180);
            GameTextForPlayer(playerid,"~w~Roadblock ~g~Placed!",3000,1);
            SetPlayerPos(playerid, plocx, plocy+1.3, plocz);
            return 1;
        }
        else if (rb == 4)
        {
            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
            new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
            GetPlayerPos(playerid, plocx, plocy, plocz);
            GetPlayerFacingAngle(playerid,ploca);
            CreateRoadblock(1238,plocx,plocy,plocz+0.2,ploca);
            GameTextForPlayer(playerid,"~w~Cone ~g~Placed!",3000,1);
            return 1;
        }
        else if (rb == 5)
        {
	        PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
	        new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
	        GetPlayerPos(playerid, plocx, plocy, plocz);
	        GetPlayerFacingAngle(playerid,ploca);
	        CreateRoadblock(3265,plocx,plocy,plocz-0.5,ploca);
	        GameTextForPlayer(playerid,"~w~Sign ~g~Placed!",3000,1);
	        return 1;
        }
        else if (rb == 6)
        {
	        PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
	        new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
	        GetPlayerPos(playerid, plocx, plocy, plocz);
	        GetPlayerFacingAngle(playerid,ploca);
	        CreateRoadblock(3091,plocx,plocy,plocz+0.5,ploca+180);
	        return 1;
      	}
      	else if (rb == 7)
        {
	        PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
	        new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
	        GetPlayerPos(playerid, plocx, plocy, plocz);
	        GetPlayerFacingAngle(playerid,ploca);
	        CreateRoadblock(1237,plocx,plocy,plocz+0.5,ploca+180);
	        return 1;
      	}
      	else if (rb == 8)
        {
	        PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
	        new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
	        GetPlayerPos(playerid, plocx, plocy, plocz);
	        GetPlayerFacingAngle(playerid,ploca);
	        CreateRoadblock(1434,plocx,plocy,plocz+0.5,ploca+180);
	        return 1;
      	}
      	else if (rb == 9)
        {
            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
            new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
            GetPlayerPos(playerid, plocx, plocy, plocz);
            GetPlayerFacingAngle(playerid,ploca);
            CreateRoadblock(1425,plocx,plocy,plocz+1.5,ploca);
            return 1;
        }
    }
    return 1;
}
Those are the main problems
Reply
#4

All those variables are defined?
Reply
#5

Im not sure how I would define them. Im having scripters block right now
Reply
#6

You've to do it yourself, why don't you search it from the gamemode you copied it? If it's already defined there might be a bracket missing (opening or closing) which is messing it up. Try this.
Reply
#7

Did you get those errors before?
If you hadn't then you are missing some brackets "}".
Reply
#8

Quote:
Originally Posted by zrelly
Посмотреть сообщение
Did you get those errors before?
If you hadn't then you are missing some brackets "}".
It's not missing brackets. What iZN said.

Get those from the place you got the rest of the code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)