• 24 Avril 2025, 08:46:08


Auteur Sujet: [Resolu]Deux Ereur Imposible a corigé!  (Lu 1175 fois)

0 Membres et 1 Invité sur ce sujet

Hors ligne Street

  • The retour
  • *
  • Bandit
  • M Power <3
  • Messages: 273
    • Voir le profil
[Resolu]Deux Ereur Imposible a corigé!
« le: 21 Août 2009, 05:58:34 »
Bien le bonsoir tout le monde(bonjour pour dotre)
J'ai deux porbléme Que je narive completemen pas a resoudre
Pouver vous maider? svp
Voici les ereur:
Citer
C:\Users\sof203\Documents\Mes fichiers reçus\gestionvoiture.pwn(1421) : warning 209: function "OnPlayerStateChange" should return a value
C:\Users\sof203\Documents\Mes fichiers reçus\gestionvoiture.pwn(2205 -- 2214) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Je vous remerci davance
Cordialement.
« Modifié: 21 Août 2009, 12:46:09 par [RsD]Rohff »
Serveur en cour de création Crée Votre Monde
~~3n1 Stunt drift kill mode game En Cour~~
___________________________________________________________________
          
           [S k D ]P r o S T R E E T

Hors ligne [viruz]rider_77

  • *
  • Mafioso
  • C/C++ programming
  • Messages: 2154
    • Voir le profil
Re : Deux Ereur Imposible a corigé!
« Réponse #1 le: 21 Août 2009, 07:34:53 »
Bah déjà c'est pas deux erreurs, mais bien une erreur et un avertissement.

Pour ton avertissement, il faut que ta fonction "OnPlayerStateChange" retourne une valeur.
Ajoute donc ceci à la fin de cette fonction :
return 0;
Pour ton erreur, faudrait voir la ligne en question. Apparemment que tu as mit un point-virgule à la place d'une virgule.

Y'a un truc anormal... t'as un code de plus de 2000 lignes et tu comprends pas ces 2 erreurs ridicules... pas de toi ce truc hein :P

++
Rider_77

Hors ligne Street

  • The retour
  • *
  • Bandit
  • M Power <3
  • Messages: 273
    • Voir le profil
Re : Deux Ereur Imposible a corigé!
« Réponse #2 le: 21 Août 2009, 07:52:08 »
Ouep :D ta tout compri =) merci beaucoup jvai teste sa :p

Double post
Encore de retour ^^
Le script
Les Lignes de 2204 -- 2212
format(vehstring, sizeof(vehstring), "%d|%d|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%s|%s\r\n",
VehiculeInfo[v][VehID],VehiculeInfo[v][Model],VehiculeInfo[v][XSpawn],VehiculeInfo[v][YSpawn],VehiculeInfo[v][ZSpawn],
VehiculeInfo[v][ASpawn],VehiculeInfo[v][Couleur1],VehiculeInfo[v][Couleur2],VehiculeInfo[v][Prix],
VehiculeInfo[v][Status],VehiculeInfo[v][Alarme],VehiculeInfo[v][Tuning1],VehiculeInfo[v][Tuning2],
VehiculeInfo[v][Tuning3],VehiculeInfo[v][Tuning4],VehiculeInfo[v][Tuning5],VehiculeInfo[v][Tuning6],
VehiculeInfo[v][Tuning7],VehiculeInfo[v][Tuning8],VehiculeInfo[v][Tuning9],VehiculeInfo[v][Tuning10],
VehiculeInfo[v][Tuning11],VehiculeInfo[v][Tuning12],VehiculeInfo[v][Tuning13],VehiculeInfo[v][Tuning14],
VehiculeInfo[v][Tuning15],VehiculeInfo[v][Tuning16],VehiculeInfo[v][Tuning17],VehiculeInfo[v][Peinture],
);
Les ereurs!
Citer
C:\Users\sof203\Documents\Mes fichiers reçus\gestionvoiture.pwn(2204 -- 2212) : error 029: invalid expression, assumed zero
C:\Users\sof203\Documents\Mes fichiers reçus\gestionvoiture.pwn(2204 -- 2212) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Merci d'avance :D
« Modifié: 21 Août 2009, 08:26:50 par [RsD]Rohff »
Serveur en cour de création Crée Votre Monde
~~3n1 Stunt drift kill mode game En Cour~~
___________________________________________________________________
          
           [S k D ]P r o S T R E E T

Hors ligne cristab

  • *
  • Messages: 8379
    • Voir le profil
Re : Deux Ereur Imposible a corigé!
« Réponse #3 le: 21 Août 2009, 08:53:38 »
je pense que tu n'as pas relut le code


<?php//ne pas s'occuper des balises php elle sont la pour la couleur
//regarde la longeur du format
//le tien 

'format(vehstring, sizeof(vehstring), "%d|%d|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%s|%s\r\n",'

// La le mien voila essaie

format(vehstring, sizeof(vehstring), "%d|%d| %f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d",
VehiculeInfo[v][VehID],         //ID | mo|X | Y | Z|  A  |C1 |C2| |P | S|   A|    1|   2|    3|   4|    5|    6|   7|   8|    9|  10 | 11  12  | 13|   14| 15| 16| 17| Peinture
VehiculeInfo[v][Model],
VehiculeInfo[v][XSpawn],
VehiculeInfo[v][YSpawn],
VehiculeInfo[v][ZSpawn],
VehiculeInfo[v][ASpawn],
VehiculeInfo[v][Couleur1],
VehiculeInfo[v][Couleur2],
VehiculeInfo[v][Prix],
VehiculeInfo[v][Status],
VehiculeInfo[v][Alarme],
VehiculeInfo[v][Tuning1],
VehiculeInfo[v][Tuning2],
VehiculeInfo[v][Tuning3],
VehiculeInfo[v][Tuning4],
VehiculeInfo[v][Tuning5],
VehiculeInfo[v][Tuning6],
VehiculeInfo[v][Tuning7],
VehiculeInfo[v][Tuning8],
VehiculeInfo[v][Tuning9],
VehiculeInfo[v][Tuning10],
VehiculeInfo[v][Tuning11],
VehiculeInfo[v][Tuning12],
VehiculeInfo[v][Tuning13],
VehiculeInfo[v][Tuning14],
VehiculeInfo[v][Tuning15],
VehiculeInfo[v][Tuning16],
VehiculeInfo[v][Tuning17],
VehiculeInfo[v][Peinture],
);?>
pas d'aide en PM, vous êtes sur un forum est il me semble que vous êtes la pour avoir de l'aide donc pourquoi MP une seul personne qui ne vous répondra pas alors qu'il y a plein de membre ici

Hors ligne Street

  • The retour
  • *
  • Bandit
  • M Power <3
  • Messages: 273
    • Voir le profil
Re : Deux Ereur Imposible a corigé!
« Réponse #4 le: 21 Août 2009, 08:59:52 »
Merci beaucoup mais
sa me fait toujour pareile :'(
Citer
C:\Users\sof203\Desktop\GTA SA Serv etc\Serveur Oficiel\filterscripts\gestionvoiture.pwn(2204 -- 2234) : error 029: invalid expression, assumed zero
C:\Users\sof203\Desktop\GTA SA Serv etc\Serveur Oficiel\filterscripts\gestionvoiture.pwn(2204 -- 2234) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
« Modifié: 21 Août 2009, 09:03:43 par [RsD]Rohff »
Serveur en cour de création Crée Votre Monde
~~3n1 Stunt drift kill mode game En Cour~~
___________________________________________________________________
          
           [S k D ]P r o S T R E E T

Hors ligne cristab

  • *
  • Messages: 8379
    • Voir le profil
Re : Deux Ereur Imposible a corigé!
« Réponse #5 le: 21 Août 2009, 11:39:19 »
il va falloir poster un peu plus de code car l'erreure n'est pas dans les lignes
pas d'aide en PM, vous êtes sur un forum est il me semble que vous êtes la pour avoir de l'aide donc pourquoi MP une seul personne qui ne vous répondra pas alors qu'il y a plein de membre ici

Hors ligne yah00078

  • *
  • Tueur en série
  • Messages: 163
    • Voir le profil
    • Radio locale F2xradio
Re : Deux Ereur Imposible a corigé!
« Réponse #6 le: 21 Août 2009, 11:39:47 »
Salut,
Pour la deuxieme erreur c'est une erreur de symbole , il faut que tu rajoute une ) ou un ;
Quand on veux , on peut !

Hors ligne Street

  • The retour
  • *
  • Bandit
  • M Power <3
  • Messages: 273
    • Voir le profil
Re : Deux Ereur Imposible a corigé!
« Réponse #7 le: 21 Août 2009, 11:52:43 »
ok merci je vais essayé pour la deuxiéme
Je vais voir pour un peu plus de code sifo si jarive a resoudre le deuxiéme le premiére se ressoudra ^^

Double post
Bon un peu plus de code sa sera plu simple car
je ny arive completement pas :'(
Citer
public Sauvegardevoiture()
{
   #if defined USE_MYSQL

       new query[512];
      for(new v=1;v<NbVeh;v++)
      {
           if(VehiculeInfo[v][VehID] != INVALID_VEH_ID)
           {
             format(query, sizeof(query), "UPDATE %s SET Model=%d, XSpawn='%f', YSpawn='%f', ZSpawn='%f', ASpawn='%f', Couleur1=%d, Couleur2=%d, Prix=%d, Status=%d, Alarme=%d, Tuning1=%d, Tuning2=%d, Tuning3=%d, Tuning4=%d, Tuning5=%d, Tuning6=%d, Tuning7=%d, Tuning8=%d, Tuning9=%d, Tuning10=%d, Tuning11=%d, Tuning12=%d, Tuning13=%d, Tuning14=%d, Tuning15=%d, Tuning16=%d, Tuning17=%d, Peinture=%d, MaxEssence=%d, Proprio='%s', Nom='%s' WHERE VehID=%d LIMIT 1",
              MYSQL_TB_VEH,VehiculeInfo[v][Model],VehiculeInfo[v][XSpawn],VehiculeInfo[v][YSpawn],VehiculeInfo[v][ZSpawn],
             VehiculeInfo[v][ASpawn],VehiculeInfo[v][Couleur1],VehiculeInfo[v][Couleur2],VehiculeInfo[v][Prix],
             VehiculeInfo[v][Status],VehiculeInfo[v][Alarme],VehiculeInfo[v][Tuning1],VehiculeInfo[v][Tuning2],
             VehiculeInfo[v][Tuning3],VehiculeInfo[v][Tuning4],VehiculeInfo[v][Tuning5],VehiculeInfo[v][Tuning6],
             VehiculeInfo[v][Tuning7],VehiculeInfo[v][Tuning8],VehiculeInfo[v][Tuning9],VehiculeInfo[v][Tuning10],
             VehiculeInfo[v][Tuning11],VehiculeInfo[v][Tuning12],VehiculeInfo[v][Tuning13],VehiculeInfo[v][Tuning14],
             VehiculeInfo[v][Tuning15],VehiculeInfo[v][Tuning16],VehiculeInfo[v][Tuning17],VehiculeInfo[v][Peinture],
             );
            samp_mysql_query(query);
            printf("---- Vehicule %d sauvegarder! ----",v);
         }
      }

   #else

       new File:VehFile = fopen(VEH_FILENAME, io_write);
      new vehstring[256];
      for(new v=1;v<NbVeh;v++)
      {
          if(VehiculeInfo[v][VehID] != INVALID_VEH_ID)
          {
            format(vehstring, sizeof(vehstring), "%d|%d| %f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d",
            VehiculeInfo[v][VehID],           //ID | mo|X | Y | Z|  A  |C1 |C2| |P | S|   A|    1|   2|    3|   4|    5|    6|   7|   8|    9|  10 | 11  12  | 13|   14| 15| 16| 17| Peinture
            VehiculeInfo[v][Model],
            VehiculeInfo[v][XSpawn],
            VehiculeInfo[v][YSpawn],
            VehiculeInfo[v][ZSpawn],
            VehiculeInfo[v][ASpawn],
            VehiculeInfo[v][Couleur1],
            VehiculeInfo[v][Couleur2],
            VehiculeInfo[v][Prix],
            VehiculeInfo[v][Status],
            VehiculeInfo[v][Alarme],
            VehiculeInfo[v][Tuning1],
            VehiculeInfo[v][Tuning2],
            VehiculeInfo[v][Tuning3],
            VehiculeInfo[v][Tuning4],
            VehiculeInfo[v][Tuning5],
            VehiculeInfo[v][Tuning6],
            VehiculeInfo[v][Tuning7],
            VehiculeInfo[v][Tuning8],
            VehiculeInfo[v][Tuning9],
            VehiculeInfo[v][Tuning10],
            VehiculeInfo[v][Tuning11],
            VehiculeInfo[v][Tuning12],
            VehiculeInfo[v][Tuning13],
            VehiculeInfo[v][Tuning14],
            VehiculeInfo[v][Tuning15],
            VehiculeInfo[v][Tuning16],
            VehiculeInfo[v][Tuning17],
            VehiculeInfo[v][Peinture],
            );
           fwrite(VehFile, vehstring);
          printf("---- Vehicule %d sauvegarder! ----",v);
         }
      }
      fclose(VehFile);

   #endif
}
« Modifié: 21 Août 2009, 11:58:01 par [RsD]Rohff »
Serveur en cour de création Crée Votre Monde
~~3n1 Stunt drift kill mode game En Cour~~
___________________________________________________________________
          
           [S k D ]P r o S T R E E T

Hors ligne cristab

  • *
  • Messages: 8379
    • Voir le profil
Re : Deux Ereur Imposible a corigé!
« Réponse #8 le: 21 Août 2009, 12:13:54 »
*Erreure
pas d'aide en PM, vous êtes sur un forum est il me semble que vous êtes la pour avoir de l'aide donc pourquoi MP une seul personne qui ne vous répondra pas alors qu'il y a plein de membre ici

Hors ligne R@f

  • *
  • GTAOnline Addict
  • Messages: 4655
    • Voir le profil
Re : Deux Ereur Imposible a corigé!
« Réponse #9 le: 21 Août 2009, 12:23:37 »
erreur classique et qui est juste devant ton nez.
Code: (cpp) [Sélectionner]
if(VehiculeInfo[v][VehID] != INVALID_VEH_ID)
          {
            format(vehstring, sizeof(vehstring), "%d|%d| %f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d",
            VehiculeInfo[v][VehID],           //ID | mo|X | Y | Z|  A  |C1 |C2| |P | S|   A|    1|   2|    3|   4|    5|    6|   7|   8|    9|  10 | 11  12  | 13|   14| 15| 16| 17| Peinture
            VehiculeInfo[v][Model],
            VehiculeInfo[v][XSpawn],
            VehiculeInfo[v][YSpawn],
            VehiculeInfo[v][ZSpawn],
            VehiculeInfo[v][ASpawn],
            VehiculeInfo[v][Couleur1],
            VehiculeInfo[v][Couleur2],
            VehiculeInfo[v][Prix],
            VehiculeInfo[v][Status],
            VehiculeInfo[v][Alarme],
            VehiculeInfo[v][Tuning1],
            VehiculeInfo[v][Tuning2],
            VehiculeInfo[v][Tuning3],
            VehiculeInfo[v][Tuning4],
            VehiculeInfo[v][Tuning5],
            VehiculeInfo[v][Tuning6],
            VehiculeInfo[v][Tuning7],
            VehiculeInfo[v][Tuning8],
            VehiculeInfo[v][Tuning9],
            VehiculeInfo[v][Tuning10],
            VehiculeInfo[v][Tuning11],
            VehiculeInfo[v][Tuning12],
            VehiculeInfo[v][Tuning13],
            VehiculeInfo[v][Tuning14],
            VehiculeInfo[v][Tuning15],
            VehiculeInfo[v][Tuning16],
            VehiculeInfo[v][Tuning17],
            VehiculeInfo[v][Peinture],  /* <- ICI la virgule ne doit pas être mise). */
            );

Je te laisse enlever cette virgule ;)

++
R@f

Hors ligne Street

  • The retour
  • *
  • Bandit
  • M Power <3
  • Messages: 273
    • Voir le profil
Re : Deux Ereur Imposible a corigé!
« Réponse #10 le: 21 Août 2009, 12:40:12 »
Tu est Un Best juste une petite virgule
plus petite que je ne c quoi  :lmfao
je te remercie beaucoup
Je remercie ousi Cristab
et bien-sur[viruz]rider_77&yah00078
Cordialement
A trés bientot

Serveur en cour de création Crée Votre Monde
~~3n1 Stunt drift kill mode game En Cour~~
___________________________________________________________________
          
           [S k D ]P r o S T R E E T