GTAOnline.net

San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: zidane59fr le 16 Juin 2008, 22:11:00

Titre: erreurs snif need help
Posté par: zidane59fr le 16 Juin 2008, 22:11:00
Salut à tous j'ai un petit problème pour finaliser mon GM
j'ai fais des petits changements et la impossible de compiler
4 erreurs et 1 warning

C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SFT.pwn(743) : error 012: invalid function call, not a valid address
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SFT.pwn(743) : warning 215: expression has no effect
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SFT.pwn(743) : error 001: expected token: ";", but found ")"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SFT.pwn(743) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SFT.pwn(743) : fatal error 107: too many error messages on one line

et voila les lignes ( celle du millieu étant la 743 )

    print(">------------------------------------------------");
    vehicount = CountVehicles(V_FILE_LOAD);
    bizcount = CountBusinesses(B_FILE_LOAD);

Svp aidez moi j'ai que sa à finir et j'aurais fini mon GM
Titre: Re : erreurs snif need help
Posté par: NatiVe™ le 16 Juin 2008, 22:36:16
Tu as certainement oublier de fermer une variable ou un forward avec un ";"

NV.

Titre: Re : erreurs snif need help
Posté par: Bayshore le 17 Juin 2008, 17:31:17
Yop

Envois ta fonction CountVehicles :)


+
Alexandre
Titre: Re : erreurs snif need help
Posté par: zidane59fr le 18 Juin 2008, 14:28:34
J'ai toujours pas trouvé
A chaque fois que j'y touche y'a plus d'erreur qu'avant

C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SFT.pwn(743) : error 012: invalid function call, not a valid address
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SFT.pwn(743) : warning 215: expression has no effect
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SFT.pwn(743) : error 001: expected token: ";", but found ")"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SFT.pwn(743) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SFT.pwn(743) : fatal error 107: too many error messages on one line


public OnGameModeInit()
{
    tAxI_OnGameModeInit();
    SetActiveStreamers(true,true,true,false);
    MAX_SLOTS = GetMaxPlayers();
    SetGameModeText("San Andreas Roleplay");
    printf(" ");
    printf(" ");
    print(">------------------------------------------------");
   print("tAxI's Vehicle System Is Initialising, Please Wait...");
   printf(">------------------------------------------------");
   printf(" ");
    SetTimer("FuelDown", RunOutTime, 1);
    SetTimer("CheckGas", 500, 1);
    SetTimer("Fill", 200, 1);
    SetTimer("fillcheck", 100, 1);
    SetTimer("BackupInfo",120000,1);
    SetTimer("PhoneCut",1000,1);
    SetTimer("ScoreUpdate",1000,1);
    SetTimer("ctimer",1000,1);
    SetTimer("PayDay",PD_TIMER,1);
   
    print(">------------------------------------------------");
    vehicount = CountVehicles(V_FILE_LOAD); // <================= ( erreur ligne 743 )
    bizcount = CountBusinesses(B_FILE_LOAD);
    new vehmes[256];
   format(vehmes,sizeof(vehmes),"Verifying %s (Complete) - %d Vehicle Spawns Verified!", V_FILE_LOAD, vehicount);
   printf(vehmes);
   print(">------------------------------------------------");
   printf(" ");
   print(">------------------------------------------------");
   LoadVehicles();
    print(" ");
    print(">------------------------------------------------");
    for(new c=1;c<=vehicount;c++)
   {
       sVInfo[c][gas] = GasMax;
       new strings[256];
       format(strings,sizeof(strings),"Fuelling Up Vehicle ID: %d / Type: %s", c, VehicleName[sVInfo[c][model]-400][0]);
      printf(strings);
    }
    print(">------------------------------------------------");
    printf(" ");
   print(">------------------------------------------------");
   format(tmpname,sizeof(tmpname),"     %d Vehicles Were Tuned On Server Load!     ",tuned);
     printf(" ");
   print(">------------------------------------------------");
   printf(tmpname);
   print(">------------------------------------------------");
   format(tmpname,sizeof(tmpname),"    %d Vehicles Were Refuelled On Server Load!   ",vehicount);
     printf(" ");
   print(">------------------------------------------------");
   printf(tmpname);
   print(">------------------------------------------------");
    printf(" ");
   print(">------------------------------------------------");
   print("tAxI's Vehicle System Status - 100% - System Ready...");
   print(">------------------------------------------------");
   print(" ");
   print(" ");
   print(">------------------------------------------------");
   print("Loading Businesses...Please Wait...");
   print(" ");
   LoadBusinesses();
   for(new i=0;i<20;i++) {
      CreateMapIcon(Pickup[0],Pickup[1],Pickup[2],55,250);
   }
   print(">------------------------------------------------");
    new bizmess[256];
    format(bizmess,256,"%d Businesses Successfully loaded and created",bizcount);
    printf(bizmess);
    print(">------------------------------------------------");
    printf("");
   print(">------------------------------------------------");
   print("tAxI's Business System Status - 100% - System Ready...");
   print(">------------------------------------------------");
   print(" ");
   print(" ");
   

C'est les lignes au alentours au cas ou y'orai des erreurs ici
Titre: Re : erreurs snif need help
Posté par: Nikko™ le 18 Juin 2008, 16:07:03
Doit y avoir un probleme de forward, regarde en haut de ton GM

++
nikko
Titre: Re : erreurs snif need help
Posté par: Bayshore le 18 Juin 2008, 16:35:42
Envoies ta fonction CountVehicles ! :)
Titre: Re : erreurs snif need help
Posté par: zidane59fr le 18 Juin 2008, 17:07:31
J'ai essayé de faire avec un forward mais sa me rajoute une erreur avec unknow donc c'est pas sa
Sa me soule ce pawno de merde mais je n'abandonnerais pas
J'ai pas traduit un Gamemode de merde pour le mettre à la corbeille
Svp aidez moi
En attendant je continue à faire mes tentatives ^^
Titre: Re : erreurs snif need help
Posté par: Bayshore le 18 Juin 2008, 21:14:12
 :dry²

Fais un copier-coller de ta fonction CountVehicles.