GTAOnline.net
San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: ShaDowxx™ le 03 Décembre 2010, 14:12:44
-
Bonjour, pour que j'arrive à finir mon GameMode j'ai besoins de votre aide.
Je vous explique les différents truc que je n'arrive pas à faire :
J'utilise
new total_vehicles_from_files=0;
new LoadStaticVehiclesFromFile=1;
public OnGameModeInit()
{
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_airport.txt");
return 1;
}
et voici les erreurs (comme toujours)
C:\Users\******\Downloads\Samp test\gamemodes\AviationL.pwn(91) : error 012: invalid function call, not a valid address
C:\Users\******\Downloads\Samp test\gamemodes\AviationL.pwn(91) : warning 215: expression has no effect
C:\Users\******\Downloads\Samp test\gamemodes\AviationL.pwn(91) : error 001: expected token: ";", but found ")"
C:\Users\******\Downloads\Samp test\gamemodes\AviationL.pwn(91) : error 029: invalid expression, assumed zero
C:\Users\******\Downloads\Samp test\gamemodes\AviationL.pwn(91) : fatal error 107: too many error messages on one line
voici la ligne du code :
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_airport.txt");
la ligne 91 de mon GameMode
Deux autre truc aussi :
Savez-vous comment faire des bots car je n'arrive pas a suivre le tuto disponible et mettre la date et heure (si possible réglé le temps en fonction des heures)[/s]
-
Pour l'heure tu as le FS gl_realtime
pour ton premier soucis repere toi au GM GrandLarc et regarde si tu as bien laisser #include "../include/gl_common.inc"
et aussi Change le titre de ton sujetmerci
-
Euh cristab, je veut prendre le même script qu'il ont faire sur grandlarc sur mon serveur du moin pouvoir lire les fichiers
-
sa se trouve dans le fichier gl_common.inc le systeme de lecture des fichiers ajoute la ligne en bleu sur mon post precedent
-
Merci cristab, sa marche mis à part des erreurs simple qui avec le temps je tuerais.
mais sinon tu connait un moyen pour les bots ?
-
cherche mon tuto et mon FS pour creer les bot ;)
tuto http://www.gtaonline.fr/forums/index.php/topic,9219.0.html (http://www.gtaonline.fr/forums/index.php/topic,9219.0.html)
FS http://www.gtaonline.fr/forums/index.php/topic,8775.0.html (http://www.gtaonline.fr/forums/index.php/topic,8775.0.html)
-
Salut,
Cadeau, je t'offre le lien pour le FS (http://www.gtaonline.fr/forums/index.php/topic,8775.0.html), et le lien pour le tuto (http://www.gtaonline.fr/forums/index.php/topic,9219.0.html). :P
++
Lloyd
-
tu m'as powned ^^
-
Salut :)
Explique moi, tu as re édite ton poste pour le changer carrément ? Parce que les réponses ne concorde pas du tout ^^
reposte quand c'est comme ça, ça sera plus claire et on sera de quoi parler.
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_airport.txt");
Tu ne remarque rien de bizarre ? :)
LoadStaticVehiclesFromFile est apparemment une fonction, et toi tu l'a défini par une variable et c'est via cette variable que tu va par magie extraire des données d'un fichier ? :happy
En plus pourquoi il y aura un += une fonction ?
-
ce probleme et resolut chneubeul il a juste repris le code qui permet de charger les vehicules du grandlarc il avait omis l'include gl_common
-
Salut,
tu m'as powned ^^
Mdr. :P
Je cherchais aussi comment créer un Bot, alors j'ai préféré donner les liens. ^^
++
Lloyd
-
../include/gl_common.inc(64) : warning 204: symbol is assigned a value that is never used: "vid"
../include/gl_common.inc(64 -- 80) : warning 219: local variable "string" shadows a variable at a preceding level
../include/gl_common.inc(101) : warning 219: local variable "string" shadows a variable at a preceding level
../include/gl_common.inc(124) : warning 219: local variable "string" shadows a variable at a preceding level
../include/gl_common.inc(139) : warning 219: local variable "string" shadows a variable at a preceding level
Pour le premier je sais comment faire mais je me souvient plus du code que l'on met après #pragma
Les autres j'en ai aucune idée mais sa touche les commandes :(
-
tu as definit une var string or elle est deja definit dans ton script donc dans ton GM retire new string
-
Salut,
julien change le nom de ton topic, cristab te l'as dit, dernière chance.
++Sim++
-
@cristab, non je ne peut pas sinon j'ai des erreurs sur mon gm avec la connexion des joueurs au serveur ...
@Sim, voilà.
EDIT : J'ai plein d'erreur j'en comprends mais je ne sais pas ce que je dois faire.
../include/gl_common.inc(64) : error 017: undefined symbol "AddStaticVehicleEx"
../include/gl_common.inc(64) : warning 204: symbol is assigned a value that is never used: "vid"
../include/gl_common.inc(60) : warning 204: symbol is assigned a value that is never used: "Color2"
../include/gl_common.inc(57) : warning 204: symbol is assigned a value that is never used: "Color1"
../include/gl_common.inc(52) : warning 204: symbol is assigned a value that is never used: "SpawnRot"
../include/gl_common.inc(48) : warning 204: symbol is assigned a value that is never used: "SpawnZ"
../include/gl_common.inc(44) : warning 204: symbol is assigned a value that is never used: "SpawnY"
../include/gl_common.inc(40) : warning 204: symbol is assigned a value that is never used: "SpawnX"
../include/gl_common.inc(40 -- 80) : warning 219: local variable "string" shadows a variable at a preceding level
../include/gl_common.inc(101) : warning 219: local variable "string" shadows a variable at a preceding level
../include/gl_common.inc(124) : warning 219: local variable "string" shadows a variable at a preceding level
../include/gl_common.inc(139) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(56) : error 021: symbol already defined: "main"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(64) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(66) : error 017: undefined symbol "SetGameModeText"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(67) : error 017: undefined symbol "SetWeather"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(68) : error 017: undefined symbol "SetWorldTime"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(69) : error 017: undefined symbol "AddPlayerClass"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(72) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(73) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(74) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(75) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(76) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(77) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(78) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(79) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(80) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(82) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(83) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(84) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(85) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(86) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(87) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(88) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(89) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(90) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(91) : error 017: undefined symbol "AddStaticVehicle"
C:\Users\Julien\Downloads\Samp test\gamemodes\AviationL.pwn(92) : error 017: undefined symbol "AddStaticVehicle"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
-
Manque une accolade de fermeture
je serais toi quand tu copie colle prend ton temps
-
Je sais pas ou elle est :(
-
Tu as bien l'include a_samp ?
-
Biensûr.