SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 26/09/2013, 05:49 AM   #1
CrossWindGaming
Little Clucker
 
Join Date: Aug 2013
Posts: 11
Reputation: 0
Question 26 Compile Errors. Help needed

Code:
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 (c) 1997-2006, ITB CompuPhase


26 Errors.
CrossWindGaming is offline   Reply With Quote
Old 26/09/2013, 05:49 AM   #2
Alex_Obando
Gangsta
 
Join Date: Jan 2011
Posts: 564
Reputation: 9
Default Respuesta: 26 Compile Errors. Help needed

We cannot help you if you dont post your code.
__________________
Rep me if I helped
Alex_Obando is offline   Reply With Quote
Old 26/09/2013, 05:52 AM   #3
CrossWindGaming
Little Clucker
 
Join Date: Aug 2013
Posts: 11
Reputation: 0
Default Re: 26 Compile Errors. Help needed

Code:
ShowMainMenuGUI(playerid)
{
	InsideMainMenu[playerid] = true;

	MainMenuUpdateForPlayer(playerid);
	for(new i = 0; i < 10; i++)
	{
		TextDrawShowForPlayer(playerid, MainMenuTxtdraw[i]);
	}
}
Code:
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
CrossWindGaming is offline   Reply With Quote
Old 26/09/2013, 06:07 AM   #4
iZN
High-roller
 
Join Date: Jun 2010
Posts: 2,369
Reputation: 569
Default Re: 26 Compile Errors. Help needed

All those variables are defined?
__________________
iZN is offline   Reply With Quote
Old 26/09/2013, 06:11 AM   #5
CrossWindGaming
Little Clucker
 
Join Date: Aug 2013
Posts: 11
Reputation: 0
Default Re: 26 Compile Errors. Help needed

Im not sure how I would define them. Im having scripters block right now
CrossWindGaming is offline   Reply With Quote
Old 26/09/2013, 06:17 AM   #6
iZN
High-roller
 
Join Date: Jun 2010
Posts: 2,369
Reputation: 569
Default Re: 26 Compile Errors. Help needed

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.
__________________
iZN is offline   Reply With Quote
Old 26/09/2013, 06:42 AM   #7
zrelly
Big Clucker
 
zrelly's Avatar
 
Join Date: Aug 2013
Posts: 137
Reputation: -5
Default Re: 26 Compile Errors. Help needed

Did you get those errors before?
If you hadn't then you are missing some brackets "}".
__________________
hye i ned frnds
zrelly is offline   Reply With Quote
Old 26/09/2013, 10:00 AM   #8
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,831
Reputation: 1401
Default Re: 26 Compile Errors. Help needed

Quote:
Originally Posted by zrelly View Post
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.
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile errors JAndrew Scripting Help 4 07/07/2013 12:39 PM
[Plugin] [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) DracoBlue Plugin Development 113 01/09/2012 03:53 PM
Compile get errors whitedragon Help Archive 6 29/08/2010 10:49 AM
Compile errors Jo1Nt Help Archive 4 30/12/2009 03:36 PM


All times are GMT. The time now is 01:16 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.