Jump to content
  • 0

Eroare Pawno


DarkWolf

Question

C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(65) : error 010: invalid function or declaration
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2689) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2691) : warning 209: function "IsAtLicenseplace" should return a value
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2704) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2706) : error 001: expected token: ";", but found "public"
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2706) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2706 -- 2707) : error 028: invalid subscript (not an array or too many subscripts): "playerid"
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2706 -- 2707) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.
Linia 65:
forward CheckOnline();
forward AntiSpam(playerid);                 <- Linia 65
forward SetPlayerSpawn(playerid);
Liniile 2689 - 2710
    if(IsPlayerInRangeOfPoint(playerid, Float:362.4653, Float:173.7711, Float:1008.3828))            <- Linia 2689
	return 1;
}                                                                                                                                                                <- Linia 2691

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
}                                                                                                   <- Linia 2704

public AntiSpam(playerid)                                                             <- Linia 2706
{                                                                                                   <- Linia 2707
	RecentlyShot[playerid] = 0;
	return 1;
}

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Pai la callbacku RACtime nu ai pus sa returneze nicio valoare ai pus doar return trebuie sa pui return 1 sau 0 si

if(IsPlayerInRangeOfPoint(playerid, Float:362.4653, Float:173.7711, Float:1008.3828))
nu e bun trebuie sa pui
if(IsPlayerInRangeOfPoint(playerid, Float:362.4653, Float:173.7711, Float:1008.3828))
{
}
sau
if(IsPlayerInRangeOfPoint(playerid, Float:362.4653, Float:173.7711, Float:1008.3828))
		return //Si aici pui functii

Link to comment
Share on other sites

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);
      }
} 

 

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Link to comment
Share on other sites

NexT." post="159269" timestamp="1395439674"]

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);
      }
} 
                                          ^                                             | Asta trebuie pusa in parantezele de aici?
if(IsPlayerInRangeOfPoint(playerid, Float:362.4653, Float:173.7711, Float:1008.3828))
{
}

                                                       

                 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.