Jump to content

Question

Posted

Eroare

[pawn](1880) : error 025: function heading differs from prototype

(2759) : error 017: undefined symbol "CarInfo"

(2759) : error 036: empty statement

(2759) : error 017: undefined symbol "car"

(2759) : fatal error 107: too many error messages on one line[/pawn]

Functia

[pawn]public RACtime(playerid)

{

      for(new player=0; player<MAX_PLAYERS; player++)

      {

      if(!IsVehicleOccupied(player)) SetVehicleToRespawn(player);

      }

  Linia unde imi da eroare ......    for(new car = 1; car < sizeof(CarInfo); car++)

      {

          if(!IsVehicleOccupied(car)) SetVehicleToRespawn(car);

      }

      return 1;

}[/pawn]

3 answers to this question

Recommended Posts

Posted

Functia:

public RACtime(playerid)
{
      for(new player=0; player<MAX_PLAYERS; player++)
      {
      if(!IsVehicleOccupied(player)) SetVehicleToRespawn(player);
      }
      for(new car = 1; car < sizeof(CarInfo); car++)
      {
          if(!IsVehicleOccupied(car)) SetVehicleToRespawn(car);
      }
      return 1;
}
Adaugi in Gamemode:
new CarInfo[1500][cInfo];

Rareori ne gândim la ceea ce avem, dar mereu la ceea ce ne lipseşte

Posted

am pus dar uite ........

[pawn](1880) : error 025: function heading differs from prototype

(3890) : warning 213: tag mismatch

(3890) : error 032: array index out of bounds (variable "PlayerInfo")

(4168) : warning 213: tag mismatch

(4168) : error 032: array index out of bounds (variable "PlayerInfo")

(4183) : warning 213: tag mismatch

4183) : error 032: array index out of bounds (variable "PlayerInfo")

(4198) : warning 213: tag mismatch

(4198) : error 032: array index out of bounds (variable "PlayerInfo")

(4213) : warning 213: tag mismatch

(4213) : error 032: array index out of bounds (variable "PlayerInfo")

(4228) : warning 213: tag mismatch

(4228) : error 032: array index out of bounds (variable "PlayerInfo")

(4630) : warning 213: tag mismatch

(4630) : error 032: array index out of bounds (variable "PlayerInfo")

(4645) : warning 213: tag mismatch

(4645) : error 032: array index out of bounds (variable "PlayerInfo")

(4674) : warning 213: tag mismatch

(4674) : error 032: array index out of bounds (variable "PlayerInfo")

(4683) : warning 213: tag mismatch

(4683) : error 032: array index out of bounds (variable "PlayerInfo")[/pawn]

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.