[HELP] SERIOUS ERRORS!
#1

alright so I've recently ended editing my game mode up a bit and when I compiled it it started acting retarded on me when it didn't do so back then with the errors given below...IDK what I did wrong in my script but I have the latest 0.3c update even the includes and still it gives me this shit? what did I do wrong? and can anyone help?

Код:
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(326) : warning 225: unreachable code
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(1524) : warning 235: public function lacks forward declaration (symbol "OnPlayerUpdate")
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2045) : error 029: invalid expression, assumed zero
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2045) : error 004: function "OnPlayerCommandText" is not implemented
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2049) : error 017: undefined symbol "cmdtext"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2053) : error 017: undefined symbol "cmdtext"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2079) : error 017: undefined symbol "cmdtext"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2142) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2243) : error 017: undefined symbol "cmdtext"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2255) : error 017: undefined symbol "cmdtext"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2259) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2048) : warning 203: symbol is never used: "idx"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2048 -- 2281) : warning 225: unreachable code
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2281) : error 029: invalid expression, assumed zero
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2281) : error 004: function "OnPlayerSelectedMenuRow" is not implemented
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2288) : error 017: undefined symbol "row"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2338) : error 017: undefined symbol "row"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2390) : error 017: undefined symbol "row"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2412) : error 017: undefined symbol "row"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2492) : error 017: undefined symbol "row"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2525) : warning 225: unreachable code
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2525) : error 029: invalid expression, assumed zero
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2525) : error 004: function "OnPlayerExitedMenu" is not implemented
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2533) : warning 225: unreachable code
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2533) : error 029: invalid expression, assumed zero
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2533) : error 004: function "OnPlayerKeyStateChange" is not implemented
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2570) : error 017: undefined symbol "newkeys"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2613) : error 017: undefined symbol "newkeys"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2639) : error 017: undefined symbol "newkeys"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2640) : error 017: undefined symbol "newkeys"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2641) : error 017: undefined symbol "newkeys"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2642) : error 017: undefined symbol "newkeys"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2643) : error 017: undefined symbol "newkeys"
C:\Users\owner\Desktop\ARP\gamemodes\COD-Zombies.pwn(2644) : error 017: undefined symbol "newkeys"

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


26 Errors.
Reply
#2

Looks like you're missing a closing bracket.
Reply
#3

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
Looks like you're missing a closing bracket.
seriously, just a bracket lol? or might it be something else?
Reply
#4

That's what all of the errors suggest, a missing bracket. Unless you do actually have all of those errors in your code, which I doubt.
Reply
#5

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
That's what all of the errors suggest, a missing bracket. Unless you do actually have all of those errors in your code, which I doubt.
well sorry to say I really don't know where to put the bracket(s) since I keep checking and can't seem to find a spot for it...I'd figure I post my error callbacks here then:

OnPlayerCommandText:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
        new cmd[256];
        new target, idx;
        cmd = strtok(cmdtext, idx);
        new VID = GetPlayerVehicleID(playerid);
    	new MOD = GetVehicleModel(playerid);

        if(strcmp(cmdtext, "/refuel", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                if(!IsPlayerInAnyVehicle(playerid) || MOD == 510 || MOD == 509 || MOD == 481)
                {
                    SendClientMessage(playerid,WHITE,"* You are not in a Vehicle / You can't fill that Vehicle!");
                    return 1;
                }
                if(!IsAtGasStation(playerid))
                {
                        SendClientMessage(playerid,WHITE,"* You are not at the Gas Station!");
                        return 1;
                }
                if(VehicleGas[VID] < MAX_GAS)
                {
                    ShowMenuForPlayer(Gas,playerid);
                    TogglePlayerControllable(playerid,0);
                }
                else
                        {
                            SendClientMessage(playerid,WHITE,"* The Tank is full!");
                        }
            }
                return 1;
        }
        if(strcmp(cmdtext, "/exit", true) == 0)
        {
                if(IsPlayerConnected(playerid))
                {
                        if(IsPlayerInAnyVehicle(playerid))
                        {
                                RemovePlayerFromVehicle(playerid);
                                SendClientMessage(playerid,YELLOW,"* You left the vehicle.");
                                TogglePlayerControllable(playerid,1);
                        }
                        else
                        {
                        SendClientMessage(playerid,WHITE,"* You are not in a Vehicle!");
                        }
                }
                return 1;
        }
        if(strcmp(cmd, "/zhide", true) == 0)
        {
                if(team[playerid] != 2) return SendClientMessage(playerid, YELLOW, "You are not a Zombie!");
                TogglePlayerControllable(playerid, 0);
                ApplyAnimation(playerid,"DAM_JUMP","SF_JUMPWALL",999999,0,1,1,1,1);
        		UsingAnimation[playerid] = 1;
                return 1;
        }
        if(strcmp(cmd, "/heal", true) == 0)
        {
        if(team[playerid] != 5) return SendClientMessage(playerid, YELLOW, "You are not a Medic!");
        target = GetClosestPlayer(playerid);
        if(target == INVALID_PLAYER_ID || target == playerid) return SendClientMessage(playerid, YELLOW, "Nobody is near you!");
        if(team[target] == 2) return SendClientMessage(playerid, YELLOW, "Player not human!");
                if(GetDistanceBetweenPlayers(playerid,target) <= 2)
                {
                    SetPlayerHealth(target,100);
                    GameTextForPlayer(target,"~g~HEALED",5000,1);
                    SendClientMessage(playerid,GREEN,"Player was healed!");
                    SendClientMessage(playerid,GREEN,"You gained a point!");
                    new score = GetPlayerScore(playerid);
                	SetPlayerScore(playerid, score+1);
                }
                else SendClientMessage(playerid, YELLOW, "Nobody is near you!");
                return 1;
        }
        if(strcmp(cmd, "/anti", true) == 0)
        {
        if(team[playerid] != 4) return SendClientMessage(playerid, YELLOW, "You are not a Scientist!");
        target = GetClosestPlayer(playerid);
        if(target == INVALID_PLAYER_ID || target == playerid) return SendClientMessage(playerid, YELLOW, "Nobody is near you!");
        if(team[target] == 2) return SendClientMessage(playerid, YELLOW, "Player not human!");
                if(GetDistanceBetweenPlayers(playerid,target) <= 2)
                {
                    infected[target] = 0;
                    GameTextForPlayer(target,"~g~CURED",5000,1);
                    SendClientMessage(playerid,GREEN,"Player was cured!");
                    SendClientMessage(playerid,GREEN,"You gained a point!");
                    new score = GetPlayerScore(playerid);
                        SetPlayerScore(playerid, score+1);
                }
                else SendClientMessage(playerid, YELLOW, "Nobody is near you!");
                return 1;
        }
        if(strcmp(cmd, "/panic", true) == 0)
        {
            new name[MAX_PLAYERS], string[50],x;
            GetPlayerName(playerid, name, sizeof(name));
            if(team[playerid] == 2) return SendClientMessage(playerid, YELLOW, "You are not a human.");
                if(team[playerid] != 1) return SendClientMessage(playerid, YELLOW, "You must stay calm.");
                format(string, sizeof(string), "%s is Panicking and needs assistance.", name);
        for(x=0;x<MAX_PLAYERS;x++)
        {
                        if(team[x] != 2)
                        {
                    new Float:X3,Float:Y3,Float:Z3;
                    DisablePlayerCheckpoint(x);
                    GetPlayerPos(x,X3,Y3,Z3);
                    SetPlayerCheckpoint(x,X3,Y3,Z3,8.0);
                }
        }
                SendClientMessageToAll(YELLOW,string);
                return 1;
        }
        if(strcmp(cmd, "/commands", true) == 0)
        {
            SendClientMessage(playerid,GREY,"/panic - /zhide - /heal - /anti - /redeemprize - /rankinfo - /myrank - /drinks - /refuel - /exit");
            SendClientMessage(playerid,GREY,"/viewon - /viewoff");
			return 1;
        }
        if(strcmp(cmd, "/help", true) == 0)
        {
            SendClientMessage(playerid,GREY,"Call Of Duty: Zombies is a massive zombie game.");
            SendClientMessage(playerid,GREY,"There are four classes: Humans(Cyan), Zombies(Red), Scientists(White), and Medics(Orange).");
            SendClientMessage(playerid,GREY,"It is all humans vs zombies. Humans may also kill other humans if the person is infected.");
            SendClientMessage(playerid,GREY,"If you die while infected you will become a zombie. Armour will protect you from geting infected.");
            SendClientMessage(playerid,CYAN,"Humans are regular players with upgradable pistols. They have the ability to /panic.");
            SendClientMessage(playerid,RED,"Zombies are players that have been infected, killed, then resurected, also with upgradable pistols. They have the ability to /zhide.");
            SendClientMessage(playerid,WHITE,"Scientist are players who are able to cure infected players with /anti. They are equipped with a Silenced Pistol.");
            SendClientMessage(playerid,ORANGE,"Medics are players that can restore others health with /heal. They are equipped with a Desert Eagle.");
            SendClientMessage(playerid,ORANGE,"All of which, does NOT mean Deathmatch/Team Deathmatch, if we cath you, you will be consequenced on your actions.");
			return 1;
        }
        if(strcmp(cmd, "/human", true) ==0)
        {
                if(team[playerid] == 0)
                {
                team[playerid] = 1;
                SendClientMessage(playerid,GREEN,"You may now spawn.");
                HideMenuForPlayer(mainmenu,playerid);
                return 1;
                }
                else
                {
                    team[playerid] = 1;
                        SetPlayerHealth(playerid, 0);
                        return 1;
                }
        }
        if(strcmp(cmd, "/zombie", true) ==0)
        {
                if(team[playerid] == 0)
                {
                team[playerid] = 2;
                SendClientMessage(playerid,GREEN,"You may now spawn.");
                HideMenuForPlayer(mainmenu,playerid);
                return 1;
                }
                else
                {
                    team[playerid] = 2;
                        SetPlayerHealth(playerid, 0);
                        return 1;
                }
        }
        if(strcmp(cmd, "/scientist", true) ==0)
        {
                if(team[playerid] == 0)
                {
                team[playerid] = 4;
                SendClientMessage(playerid,GREEN,"You may now spawn.");
                HideMenuForPlayer(mainmenu,playerid);
                return 1;
                }
                else
                {
                    team[playerid] = 4;
                        SetPlayerHealth(playerid, 0);
                        return 1;
                }
        }
        if(strcmp(cmd, "/medic", true) ==0)
        {
                if(team[playerid] == 0)
                {
                team[playerid] = 5;
                SendClientMessage(playerid,GREEN,"You may now spawn.");
                HideMenuForPlayer(mainmenu,playerid);
                return 1;
                }
                else
                {
                    team[playerid] = 5;
                        SetPlayerHealth(playerid, 0);
                        return 1;
                }
        }
        if(strcmp(cmdtext, "/rankinfo", true)==0)
		{
		SendClientMessage(playerid,COLOR_TUT, ".........:::: Rank Info Centre ::::........");
        SendClientMessage(playerid,COLOR_WHITE, "Rank 0 -  *Newbie*  (0 kills required)");
        SendClientMessage(playerid,COLOR_WHITE, "Rank 1 -  *Baby Killa'*  (75 kills required)");
        SendClientMessage(playerid,COLOR_WHITE, "Rank 2 -  *Soldier*  (150 kills required)");
		SendClientMessage(playerid,COLOR_WHITE, "Rank 3 -  *Gangsta'*  (300 kills required)");
		SendClientMessage(playerid,COLOR_WHITE, "Rank 4 -  *UnderBoss*  (550 kills required)");
		SendClientMessage(playerid,COLOR_WHITE, "Rank 5 -  *Tha' Boss*  (700 kills required)");
		return 1;
		}

	if (strcmp("/myrank", cmdtext, true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
		 	new string[250];
			new rankid = pRank[playerid];
			new pName[MAX_PLAYER_NAME];
			GetPlayerName(playerid, pName, sizeof(pName));
	    	new rank[20];
	    	if(pRank[playerid] == 0) { rank = "Newbie"; }
		    else if(pRank[playerid] == 1) { rank = "Baby Killa'"; }
		    else if(pRank[playerid] == 2) { rank = "Soldier"; }
		    else if(pRank[playerid] == 3) { rank = "Gangsta'"; }
		    else if(pRank[playerid] == 4) { rank = "Underboss"; }
		    else if(pRank[playerid] == 5) { rank = "Tha' Boss"; }

			format(string, sizeof(string), "*** %s's Rank Info ***",pName);
		    SendClientMessage(playerid, COLOR_ROYAL,string);
   			format(string, sizeof(string), "Your curent rank is %d (%s) with %d score",rankid,rank,GetPlayerScore(playerid));
		    SendClientMessage(playerid, COLOR_CWHITE,string);
		}
		return 1;
	}
        return 0;
}
OnPlayerSelectedMenuRow:
Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
    new Menu:Current = GetPlayerMenu(playerid);
    new Float:PlayerHealth;
    new Health = GetPlayerHealth(playerid, PlayerHealth);
        if(Current == BurgerShot)
        {
                switch(row)
                {
                        case 0:
                        {
                                GivePlayerMoney(playerid, -5);
                                if(Health <= 74.9)
                                {
                                        SetPlayerHealth(playerid, PlayerHealth+25);
                                }
                                else
                                {
                                    SetPlayerHealth(playerid, 100.0);
                                }
                                SendClientMessage(playerid, 0xFFC801C8, "Burger Shot: Thank you for buying the Baby Burger, have a nice meal and good afternoon!");
                                PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                TogglePlayerControllable(playerid, 1);
                                SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
                                return 1;
                        }
                        case 1:
                        {
                                GivePlayerMoney(playerid, -10);
                                if(Health <= 49.9)
                                {
                                        SetPlayerHealth(playerid, PlayerHealth+50);
                                }
                                else
                                {
                                    SetPlayerHealth(playerid, 100.0);
                                }
                                SendClientMessage(playerid, 0xFFC801C8, "Burger Shot: Thank you for buying the Double Cheese, have a Cheesy meal and good afternoon!");
                                PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                TogglePlayerControllable(playerid, 1);
                                SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
                                return 1;
                        }
                        case 2:
                        {
                                GivePlayerMoney(playerid, -20);
                                SetPlayerHealth(playerid, PlayerHealth+100);
                                SendClientMessage(playerid, 0xFFC801C8, "Burger Shot: Thank you for buying the Tripple Whopper, have a nice feast and good afternoon!");
                                PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                TogglePlayerControllable(playerid, 1);
                                SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
                                return 1;
                        }
                }
        }
        if(Current == CluckinBell)
        {
                switch(row)
                {
                        case 0:
                        {
                                GivePlayerMoney(playerid, -5);
                                if(Health <= 74.9)
                                {
                                        SetPlayerHealth(playerid, PlayerHealth+25);
                                }
                                else
                                {
                                    SetPlayerHealth(playerid, 100.0);
                                }
                                SendClientMessage(playerid, 0xFFC801C8, "Cluckin' Bell: Thank you for your interest in our food, good afternoon!");
                                PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                TogglePlayerControllable(playerid, 1);
                                SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
                                return 1;
                        }
                        case 1:
                        {
                                GivePlayerMoney(playerid, -10);
                                if(Health <= 49.9)
                                {
                                        SetPlayerHealth(playerid, PlayerHealth+50);
                                }
                                else
                                {
                                    SetPlayerHealth(playerid, 100.0);
                                }
                                SendClientMessage(playerid, 0xFFC801C8, "Cluckin' Bell: we thank you and hope you enjoy your Chicken Wing, have a good day!");
                                PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                TogglePlayerControllable(playerid, 1);
                                SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
                                return 1;
                        }
                        case 2:
                        {
                                GivePlayerMoney(playerid, -20);
                                SetPlayerHealth(playerid, PlayerHealth+100);
                                SendClientMessage(playerid, 0xFFC801C8, "Cluckin' Bell: We hope you eat it all, have a nice day!");
                                PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                TogglePlayerControllable(playerid, 1);
                                SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
                                return 1;
                        }
                }
        }
    new Menu:current;
    current = GetPlayerMenu(playerid);
    if(current == mainmenu)
    {
        switch(row)
        {
                case 0:{
            team[playerid] = 1;
            SendClientMessage(playerid,GREEN,"You may now spawn.");
            }
            case 1:{
                        team[playerid] = 2;
                        SendClientMessage(playerid,GREEN,"You may now spawn.");
            }
            case 2:{
                        team[playerid] = 4;
                        SendClientMessage(playerid,GREEN,"You may now spawn.");
            }
            case 3:{
                        team[playerid] = 5;
                        SendClientMessage(playerid,GREEN,"You may now spawn.");
            }
        }
    }
    if(GetPlayerMenu(playerid) == PrizeMenu)
    {
        switch(row)
        {
            case 0:
			{
			    if(GetPlayerScore(playerid) <= 2500)
			    {
			        SendClientMessage(playerid,ERROR,"You do not have enough points for that prize (2,500).");
			        ShowMenuForPlayer(PrizeMenu,playerid);
			        return 1;
			    }
				SendClientMessage(playerid,BLUE,"You have received the Secret Weapons Pack! Contents: Desert Eagle[Ammo:100] AND M4[Ammo: 500]");
                GivePlayerWeapon(playerid, 24, 100);
                GivePlayerWeapon(playerid, 31, 500);
				SetPlayerScore(playerid,GetPlayerScore(playerid)-2500);
			    TogglePlayerControllable(playerid,1);
            }
            case 1:
			{
			    if(GetPlayerScore(playerid) <= 15000)
			    {
			        SendClientMessage(playerid,ERROR,"You do not have enough points for that prize (15,000).");
			        ShowMenuForPlayer(PrizeMenu,playerid);
			        return 1;
			    }
				if(SpawnArmor[playerid]==1)
				{
			        SendClientMessage(playerid,ERROR,"You already have bought spawn armor.");
			        ShowMenuForPlayer(PrizeMenu,playerid);
			        return 1;
				}
				SpawnArmor[playerid]=1;
				SendClientMessage(playerid,BLUE,"You have bought spawn armor.");
				SetPlayerScore(playerid,GetPlayerScore(playerid)-15000);
			    TogglePlayerControllable(playerid,1);
            }
            case 2:
			{
			    if(GetPlayerScore(playerid) <= 5000)
			    {
			        SendClientMessage(playerid,ERROR,"You do not have enough points for that prize (5,000).");
			        ShowMenuForPlayer(PrizeMenu,playerid);
			        return 1;
			    }
				SetPlayerArmour(playerid,100.0);
				SendClientMessage(playerid,BLUE,"You have bought armor.");
				SetPlayerScore(playerid,GetPlayerScore(playerid)-5000);
			    TogglePlayerControllable(playerid,1);
            }
            case 3:
			{
			    if(GetPlayerScore(playerid) <= 50)
			    {
			        SendClientMessage(playerid,ERROR,"You do not have enough points for that prize (50).");
			        ShowMenuForPlayer(PrizeMenu,playerid);
			        return 1;
			    }
				SetPlayerAmmo(playerid,0,GetPlayerAmmo(playerid)+500);
				SetPlayerAmmo(playerid,1,GetPlayerAmmo(playerid)+500);
				SendClientMessage(playerid,BLUE,"You have bought 500 ammo.");
				SetPlayerScore(playerid,GetPlayerScore(playerid)-50);
			    TogglePlayerControllable(playerid,1);
            }
            case 4:
			{
   				if(GetPlayerScore(playerid) <= 600)
			    {
			        SendClientMessage(playerid,ERROR,"You do not have enough points for that prize (600).");
					ShowMenuForPlayer(PrizeMenu,playerid);
					return 1;
	   			}
				SetPlayerHealth(playerid, 200);
				SendClientMessage(playerid,BLUE,"You have upgraded your health! +200 HP");
				SetPlayerScore(playerid,GetPlayerScore(playerid)-600);
			    TogglePlayerControllable(playerid,1);
            }
        }
    }
    new Menu:Current1 = GetPlayerMenu(playerid);
        if(Current1 == Gas)
        {
                switch(row)
        		{
                        case 0:
                        {
                                GameTextForPlayer(playerid,"~b~Natural 95 ~n~ ~w~Refueling vehicle ~n~~g~Please wait..",4000,3);
                                RefillTimer = SetTimerEx("ReFill",2000,1,"i",playerid);
                                Filling[playerid] = 1;
                                TogglePlayerControllable(playerid,0);
                        }
                        case 1:
                        {
                                GameTextForPlayer(playerid,"~b~Natural 98 ~n~ ~w~Refueling vehicle ~n~~g~Please wait..",4000,3);
                                RefillTimer = SetTimerEx("ReFill",2000,1,"i",playerid);
                                Filling[playerid] = 1;
                                TogglePlayerControllable(playerid,0);
                        }
                        case 2:
                        {
                                GameTextForPlayer(playerid,"~b~Super Diesel ~n~ ~w~Refueling vehicle ~n~~g~Please wait..",4000,3);
                                RefillTimer = SetTimerEx("ReFill",2000,1,"i",playerid);
                                Filling[playerid] = 1;
                                TogglePlayerControllable(playerid,0);
                        }
                        case 3:
                        {
                                HideMenuForPlayer(Gas,playerid);
                                TogglePlayerControllable(playerid,1);
                        }
        		}
        }
    return 1;
}
OnPlayerExitedMenu:
Код:
public OnPlayerExitedMenu(playerid)
{
    TogglePlayerControllable(playerid, 1);
    SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
    TogglePlayerControllable(playerid,1);
        return 1;
}
and yes ur right I DO have all the functions defined in my script it's probably the brackets but me not knowing where to find and put them in.
Reply
#6

What is your line 326?
Reply
#7

Quote:
Originally Posted by PeteShag
Посмотреть сообщение
What is your line 326?
I have this in my line 326:

Код:
 for(new i=0; i<MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			OnPlayerConnect(i);
		}
	}
Reply
#8

I am going to assume that you have an extra bracket before line 326.

Please post the entire function that line 326 is in.
Reply
#9

Provided the code and errors you have provided, I assume you are missing a bracket just above your OnPlayerCommandText callback. Try re-checking the code above for a missing bracket.
Reply
#10

It would be better to give all of your code. cmdtext is also not define and row also
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)