Jump to content
  • 0

Question

Posted

warning 235: public function lacks forward declaration (symbol "FO1")

warning 213: tag mismatch

Cum as putea sa rezolv warningsurile astea? Ma cam streseaza  ;D

7 answers to this question

Recommended Posts

  • 0
  • Administrator
Posted

Posteaza liniile unde iti da warning.

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

  • 0
Posted

			if (strcmp(tmp, "finish", true)==0)
			{
			    if (DerbyStarted != 2)
			    {
			        SendClientMessage(playerid, COLOR_GRAD1, "You can't finish a Derby that didn't /derby start yet");
			        return 1;
			    }
			    DerbyStarted = 0;
			    new DerbyWinner = 255;
			    new derbyhealth = 0;
			    new carssurvived = 0;
			    new tmphealth;
			    new derbyid;
			    for (i=0; i<MAX_PLAYERS; i++)
			    {
			        if (DerbyPlayers[i] == 1)
			        {
						derbyid = GetPlayerVehicleID(i);
						if (IsPlayerConnected(i) && IsPlayerInAnyVehicle(playerid) && GetVehicleModel(derbyid) == 504)
						{
						    carssurvived++;
						    GetVehicleHealth(derbyid, tmphealth);
						    if (tmphealth > derbyhealth)
						    {
						        derbyhealth = tmphealth;
						        DerbyWinner = i;
						    }
						}
			        }
			    }
			    format(string, sizeof(string), "A Derby has finished. %d cars survived.", carssurvived);
			    SendClientMessageToAll(TEAM_ORANGE_COLOR, string);
			    if (DerbyWinner != 255)
			    {
				    GetPlayerName(DerbyWinner, playername, sizeof(playername));
				    format(string, sizeof(string), "Our winner is %s, who is getting $%d.", playername, DerbyPrize);
				    SafeGivePlayerMoney(DerbyWinner, DerbyPrize);
			    }
			    else
			    {
			        format(string, sizeof(string), "No one survived in current Destruction Derby.");
			    }
			    SendClientMessageToAll(TEAM_ORANGE_COLOR, string);
			    return 1;
			}
	    }
	}
Asta este pentru prima eroare (tag mismatch) Si pentru F01:
public FO1(playerid)
{
	ClearChatbox(playerid, 5);
	SendClientMessage(playerid, COLOR_YELLOW, "Ti se vor pune intrebari despre ce ai invatat in joc!");
	SendClientMessage(playerid, COLOR_YELLOW2, " ");
}

  • 0
  • Administrator
Posted

1.Ma refeream sa postezi linia cu warning,nu pe toate.

2.Daca ai SendClientMessage(playerid, COLOR_YELLOW2, " "); ai pus si la inceput #define COLOR_YELLOW2 codu ?

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

  • 0
Posted

lol, desigur ca am culoarea la inceput

#define COLOR_YELLOW2 0xF5DEB3AA

...

GetVehicleHealth(derbyid, tmphealth); - tag mismatch

public FO1(playerid) - public function lacks forward declaration (symbol "FO1")

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.