• 17 Mai 2024, 13:50:31


Auteur Sujet: Problème inc mr fredo  (Lu 1925 fois)

0 Membres et 1 Invité sur ce sujet

Hors ligne HackMaite

  • [FR] Migron's City [RP]
  • *
  • Tueur
  • [FR] Migron's City [RP]
  • Messages: 58
    • Voir le profil
Problème inc mr fredo
« le: 05 Mars 2009, 14:35:57 »
Bonjour , je voudrais savoir , je ne comprends pas ça :

Ajouter 'Script_OnGameModeInit();' dans 'OnGameModeInit' 


Je dois ajouter ' Script_OnGameModeInit() ' ou ça ,???
Merci a ceux qui  ont copié ma signatures,

BANDE DE -------

Hors ligne Syg

  • Expert programmeur C/C++/PAWN
  • *
  • The GTAOnline Jesus
  • Messages: 3908
    • Voir le profil
Re : Problème inc mr fredo
« Réponse #1 le: 05 Mars 2009, 17:14:42 »
Ben, dans 'OnGameModeInit'.

Fais une recherche dans ton gamemode (fichier avec l'extension .PWN).

++
Syg
Courtesy of GtaManiac

Hors ligne HackMaite

  • [FR] Migron's City [RP]
  • *
  • Tueur
  • [FR] Migron's City [RP]
  • Messages: 58
    • Voir le profil
Re : Problème inc mr fredo
« Réponse #2 le: 05 Mars 2009, 17:41:14 »
Oui , donc j'ai ça :

//------------------------------------------------------------------------------------------------------
public OnGameModeInit()
{
    new string[MAX_PLAYER_NAME];
    new string1[MAX_PLAYER_NAME];
for(new c=0;c<CAR_AMOUNT;c++)
{
Gas[c] = GasMax;
}
LoadProperty();
LoadBizz();
LoadSBizz();
LoadBoxer();
LoadStuff();
LoadIRC();
LoadFamilies();
LoadCK();
LoadTurfs();
LoadPapers();
IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;
IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;
IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;
IRCInfo[9][iPlayers] = 0;
News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;
format(string, sizeof(string), "Nothing");
strmid(News[hAdd1], string, 0, strlen(string), 255);
strmid(News[hAdd2], string, 0, strlen(string), 255);
strmid(News[hAdd3], string, 0, strlen(string), 255);
strmid(News[hAdd4], string, 0, strlen(string), 255);
strmid(News[hAdd5], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one");
strmid(News[hContact1], string1, 0, strlen(string1), 255);
strmid(News[hContact2], string1, 0, strlen(string1), 255);
strmid(News[hContact3], string1, 0, strlen(string1), 255);
strmid(News[hContact4], string1, 0, strlen(string1), 255);
strmid(News[hContact5], string1, 0, strlen(string1), 255);
PlayerHaul[78][pCapasity] = 100;
PlayerHaul[79][pCapasity] = 100;
PlayerHaul[80][pCapasity] = 50;
PlayerHaul[81][pCapasity] = 50;
SetGameModeText("The Godfather: LS/SF");
format(objstore, sizeof(objstore), "MOLE: I got nothing, check back with me later.");
format(cbjstore, sizeof(cbjstore), "HQ: There is nothing in your Vicinity, Out.");
format(motd, sizeof(motd), "Bienvenue sur le serveur - One City LS");
gettime(ghour, gminute, gsecond);
FixHour(ghour);
ghour = shifthour;
if(!realtime)
{
SetWorldTime(wtime);
}
SetPDistance(10);
EnableTirePopping(1);
EnableZoneNames(1);
AllowInteriorWeapons(1);
AllowAdminTeleport(1);
UsePlayerPedAnims();
// CreatedCars check
for(new i = 0; i < sizeof(CreatedCars); i++)
{
    CreatedCars[i] = 0;
}
// Zones
for(new i = 0; i < sizeof(TurfInfo); i++)
{
    Turfs[i] = GangZoneCreate(TurfInfo[i][zMinX],TurfInfo[i][zMinY],TurfInfo[i][zMaxX],TurfInfo[i][zMaxY]);
}





Je met la phrase ou ???
Merci a ceux qui  ont copié ma signatures,

BANDE DE -------

Hors ligne R@f

  • *
  • GTAOnline Addict
  • Messages: 4655
    • Voir le profil
Re : Problème inc mr fredo
« Réponse #3 le: 05 Mars 2009, 18:43:01 »
Pas dans la bonne section, je déplace ^^

++
R@f

Hors ligne HackMaite

  • [FR] Migron's City [RP]
  • *
  • Tueur
  • [FR] Migron's City [RP]
  • Messages: 58
    • Voir le profil
Re : Problème inc mr fredo
« Réponse #4 le: 05 Mars 2009, 20:11:06 »
Désolé de l'upping ,

mais qui peut m'aider ?
Merci a ceux qui  ont copié ma signatures,

BANDE DE -------

Hors ligne angelrider

  • Scripteur
  • *
  • Bandit
  • Messages: 299
    • Voir le profil
Re : Problème inc mr fredo
« Réponse #5 le: 05 Mars 2009, 20:18:49 »
Mdr un up même pas deux heure après.
Nouveau Site de Mods San Andreas:
http://lcdacreation.fr

Hors ligne S!m

  • *
  • Messages: 2341
    • Voir le profil
Re : Problème inc mr fredo
« Réponse #6 le: 05 Mars 2009, 20:20:04 »
Salut,

d'abord, tu as lancer environ 4 topics sur l'include de Mr fredo, prochaine fois, pour les problème liés ensembles, un seul topic,

deuxièmement, arrête de upper tes topics à chaque 2 heures

troisièmement:
//------------------------------------------------------------------------------------------------------
public OnGameModeInit()
{
    new string[MAX_PLAYER_NAME];
    new string1[MAX_PLAYER_NAME];
script_OnGameModeInit();
for(new c=0;c<CAR_AMOUNT;c++)
{
Gas[c] = GasMax;
}
LoadProperty();
LoadBizz();
LoadSBizz();
LoadBoxer();
LoadStuff();
LoadIRC();
LoadFamilies();
LoadCK();
LoadTurfs();
LoadPapers();
IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;
IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;
IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;
IRCInfo[9][iPlayers] = 0;
News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;
format(string, sizeof(string), "Nothing");
strmid(News[hAdd1], string, 0, strlen(string), 255);
strmid(News[hAdd2], string, 0, strlen(string), 255);
strmid(News[hAdd3], string, 0, strlen(string), 255);
strmid(News[hAdd4], string, 0, strlen(string), 255);
strmid(News[hAdd5], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one");
strmid(News[hContact1], string1, 0, strlen(string1), 255);
strmid(News[hContact2], string1, 0, strlen(string1), 255);
strmid(News[hContact3], string1, 0, strlen(string1), 255);
strmid(News[hContact4], string1, 0, strlen(string1), 255);
strmid(News[hContact5], string1, 0, strlen(string1), 255);
PlayerHaul[78][pCapasity] = 100;
PlayerHaul[79][pCapasity] = 100;
PlayerHaul[80][pCapasity] = 50;
PlayerHaul[81][pCapasity] = 50;
SetGameModeText("The Godfather: LS/SF");
format(objstore, sizeof(objstore), "MOLE: I got nothing, check back with me later.");
format(cbjstore, sizeof(cbjstore), "HQ: There is nothing in your Vicinity, Out.");
format(motd, sizeof(motd), "Bienvenue sur le serveur - One City LS");
gettime(ghour, gminute, gsecond);
FixHour(ghour);
ghour = shifthour;
if(!realtime)
{
SetWorldTime(wtime);
}
SetPDistance(10);
EnableTirePopping(1);
EnableZoneNames(1);
AllowInteriorWeapons(1);
AllowAdminTeleport(1);
UsePlayerPedAnims();
// CreatedCars check
for(new i = 0; i < sizeof(CreatedCars); i++)
{
   CreatedCars[i] = 0;
}
// Zones
for(new i = 0; i < sizeof(TurfInfo); i++)
{
   Turfs[i] = GangZoneCreate(TurfInfo[i][zMinX],TurfInfo[i][zMinY],TurfInfo[i][zMaxX],TurfInfo[i][zMaxY]);
}

++Sim++





Hors ligne HackMaite

  • [FR] Migron's City [RP]
  • *
  • Tueur
  • [FR] Migron's City [RP]
  • Messages: 58
    • Voir le profil
Re : Problème inc mr fredo
« Réponse #7 le: 05 Mars 2009, 21:37:21 »
Merci , je ne sais pas si j'ai bien compris ,


Citer
C:\Documents and Settings\vlco\Desktop\GTASERVEURGFFRENCH15PRCNT\GTASERVEUR\gamemodes\gfmodified.pwn(6634) : error 017: undefined symbol "script_OnGameModeInit"

J'ai cette erreur , ça veut dire quoi ?

Je rappel que je n'ai pas ajouter les lignes sauf celle que sim ma donné , c'est pour ça ??
Merci a ceux qui  ont copié ma signatures,

BANDE DE -------

Hors ligne MrFredo

  • *
  • Grand Banditisme
  • Scripteur PHP/PAWN
  • Messages: 953
    • Voir le profil
    • GTA-Hosting
Re : Problème inc mr fredo
« Réponse #8 le: 05 Mars 2009, 21:51:14 »
Tu la mal ecrit il faut une majuscule a Script_OnGameModeInit ^^

Hors ligne HackMaite

  • [FR] Migron's City [RP]
  • *
  • Tueur
  • [FR] Migron's City [RP]
  • Messages: 58
    • Voir le profil
Re : Problème inc mr fredo
« Réponse #9 le: 05 Mars 2009, 22:20:07 »
J'ai modifié et ça me fait toujours la même erreur .  :-X
Merci a ceux qui  ont copié ma signatures,

BANDE DE -------

Hors ligne Syg

  • Expert programmeur C/C++/PAWN
  • *
  • The GTAOnline Jesus
  • Messages: 3908
    • Voir le profil
Re : Problème inc mr fredo
« Réponse #10 le: 06 Mars 2009, 09:25:17 »
Je pense que tu as oublié de mettre la ligne
#include <gveh>au début de ton gamemode.

++
Syg
Courtesy of GtaManiac

Hors ligne HackMaite

  • [FR] Migron's City [RP]
  • *
  • Tueur
  • [FR] Migron's City [RP]
  • Messages: 58
    • Voir le profil
Re : Problème inc mr fredo
« Réponse #11 le: 06 Mars 2009, 10:40:46 »
Merci ,

Maintenant , ils me disent d'ajouter :


      - Ajouter 'Script_OnGameModeExit();' dans 'OnGameModeExit'

Je n'ai pas la phrase OnGameModeExit , elle n'est pas dans le script .
Merci a ceux qui  ont copié ma signatures,

BANDE DE -------

Hors ligne Syg

  • Expert programmeur C/C++/PAWN
  • *
  • The GTAOnline Jesus
  • Messages: 3908
    • Voir le profil
Re : Problème inc mr fredo
« Réponse #12 le: 06 Mars 2009, 10:52:01 »
Effectivement, très peu de modes utilisent cette callback (OnGameModeExit)
Ajoute ça dans ton script :
public OnGameModeExit ()
{
   Script_OnGameModeExit();
}

Tu peux l'ajouter où tu veux dans ton script en dehors de toutes autres fonctions.
Le mieux serait de la mettre juste après la callback OnGameModeInit.

++
Syg
Courtesy of GtaManiac

Hors ligne HackMaite

  • [FR] Migron's City [RP]
  • *
  • Tueur
  • [FR] Migron's City [RP]
  • Messages: 58
    • Voir le profil
Re : Problème inc mr fredo
« Réponse #13 le: 06 Mars 2009, 14:20:58 »
Voilà j'ai mis là :

Citer
//------------------------------------------------------------------------------------------------------
public OnGameModeInit()
{
    new string[MAX_PLAYER_NAME];
    new string1[MAX_PLAYER_NAME];
   Script_OnGameModeInit();
   for(new c=0;c<CAR_AMOUNT;c++)
   {
      Gas[c] = GasMax;
   }
   LoadProperty();
   LoadBizz();
   LoadSBizz();
   LoadBoxer();
   LoadStuff();
   LoadIRC();
   LoadFamilies();
   LoadCK();
   LoadTurfs();
   LoadPapers();
   IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;
   IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;
   IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;
   IRCInfo[9][iPlayers] = 0;
   News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;
   format(string, sizeof(string), "Nothing");
   strmid(News[hAdd1], string, 0, strlen(string), 255);
   strmid(News[hAdd2], string, 0, strlen(string), 255);
   strmid(News[hAdd3], string, 0, strlen(string), 255);
   strmid(News[hAdd4], string, 0, strlen(string), 255);
   strmid(News[hAdd5], string, 0, strlen(string), 255);
   format(string1, sizeof(string1), "No-one");
   strmid(News[hContact1], string1, 0, strlen(string1), 255);
   strmid(News[hContact2], string1, 0, strlen(string1), 255);
   strmid(News[hContact3], string1, 0, strlen(string1), 255);
   strmid(News[hContact4], string1, 0, strlen(string1), 255);
   strmid(News[hContact5], string1, 0, strlen(string1), 255);
   PlayerHaul[78][pCapasity] = 100;
   PlayerHaul[79][pCapasity] = 100;
   PlayerHaul[80][pCapasity] = 50;
   PlayerHaul[81][pCapasity] = 50;
   SetGameModeText("The Godfather: LS/SF");
   format(objstore, sizeof(objstore), "MOLE: I got nothing, check back with me later.");
   format(cbjstore, sizeof(cbjstore), "HQ: There is nothing in your Vicinity, Out.");
   format(motd, sizeof(motd), "Bienvenue sur le serveur - One City LS");
   gettime(ghour, gminute, gsecond);
   FixHour(ghour);
   ghour = shifthour;
   if(!realtime)
   {
      SetWorldTime(wtime);
   }
   SetPDistance(10);
   EnableTirePopping(1);
   EnableZoneNames(1);
   AllowInteriorWeapons(1);
   AllowAdminTeleport(1);
   UsePlayerPedAnims();
   
   public OnGameModeExit ()
{
   Script_OnGameModeExit();

}

Est ce bon ???
Merci a ceux qui  ont copié ma signatures,

BANDE DE -------

Hors ligne Syg

  • Expert programmeur C/C++/PAWN
  • *
  • The GTAOnline Jesus
  • Messages: 3908
    • Voir le profil
Re : Problème inc mr fredo
« Réponse #14 le: 06 Mars 2009, 14:24:19 »
Non, pas vraiment, ta callback OnGameModeExit est à l'intérieur de OnGameModeInit.

Voici comment ça doit se présenter :
public OnGameModeInit()
{
   /* Tout plein de chose que je ne vais pas réécrire */
}

public OnGameModeExit ()
{
   Script_OnGameModeExit();
}

++
Syg
Courtesy of GtaManiac