GTAOnline.net

San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: 69scorpion le 24 Août 2009, 01:14:06

Titre: GROS blème
Posté par: 69scorpion le 24 Août 2009, 01:14:06
Bonsoir ,

Depuis que j'ai fermer mon GM sans le compiler j'ai plein d'erreurs sa me l'avais déjà fait mais la je trouve le problème mais la je n'sais plus quoi faire.

Citer
Ton BOSS NEGUEZ.pwn(480) : error 017: undefined symbol "AntiDeAMX"
Ton BOSS NEGUEZ.pwn(521) : error 017: undefined symbol "CalculateVirtualTime"
Ton BOSS NEGUEZ.pwn(524) : error 004: function "HourFix" is not implemented
Ton BOSS NEGUEZ.pwn(1219) : error 004: function "OnPlayerUpdate" is not implemented
Ton BOSS NEGUEZ.pwn(1228) : error 017: undefined symbol "CalculateVirtualTime"
Ton BOSS NEGUEZ.pwn(1335) : error 004: function "ABroadCast" is not implemented
Ton BOSS NEGUEZ.pwn(1350) : error 004: function "ABroadCast" is not implemented
Ton BOSS NEGUEZ.pwn(1366) : error 004: function "ABroadCast" is not implemented
Ton BOSS NEGUEZ.pwn(1527) : error 004: function "ProxDetector" is not implemented
Ton BOSS NEGUEZ.pwn(1549) : error 004: function "ProxDetector" is not implemented
Ton BOSS NEGUEZ.pwn(1570) : error 079: inconsistent return types (array & non-array)
Ton BOSS NEGUEZ.pwn(1577) : error 079: inconsistent return types (array & non-array)
Ton BOSS NEGUEZ.pwn(1593) : error 079: inconsistent return types (array & non-array)
Ton BOSS NEGUEZ.pwn(1601) : error 079: inconsistent return types (array & non-array)
Ton BOSS NEGUEZ.pwn(1614) : error 079: inconsistent return types (array & non-array)
Ton BOSS NEGUEZ.pwn(1758) : error 079: inconsistent return types (array & non-array)
Ton BOSS NEGUEZ.pwn(1952) : error 079: inconsistent return types (array & non-array)
Ton BOSS NEGUEZ.pwn(1962) : error 079: inconsistent return types (array & non-array)
Ton BOSS NEGUEZ.pwn(1971) : error 079: inconsistent return types (array & non-array)
Ton BOSS NEGUEZ.pwn(1975) : error 004: function "IsABikeCar" is not implemented
Ton BOSS NEGUEZ.pwn(1982) : error 004: function "ProxDetector" is not implemented
Ton BOSS NEGUEZ.pwn(1995) : error 004: function "ProxDetector" is not implemented
Ton BOSS NEGUEZ.pwn(2000) : error 079: inconsistent return types (array & non-array)
Ton BOSS NEGUEZ.pwn(2016) : error 079: inconsistent return types (array & non-array)
Ton BOSS NEGUEZ.pwn(2061) : error 079: inconsistent return types (array & non-array)
Ton BOSS NEGUEZ.pwn(2158) : error 079: inconsistent return types (array & non-array)

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


26 Errors.

Merci
Titre: Re : GROS blème
Posté par: Mr_C30 le 24 Août 2009, 01:19:48
 Aa  mon avis il te manque une simple acolade ;)
Titre: Re : GROS blème
Posté par: 69scorpion le 24 Août 2009, 02:01:08
Merci enfaite j'ai fouiller dans ma mémoire pour retrouver la derrière commande que j'ai et j'ai mis l'accolade qui me manquait.


Aurait pas un systme rapide pour enlever les "loose indentation" je peut le faire mais c'est  sur plus de 500 Warings c'est trop long ?

Citer
TONBOSS.pwn(2163) : warning 217: loose indentation
TONBOSS.pwn(2283) : warning 217: loose indentation
TONBOSS.pwn(2336) : warning 217: loose indentation
TONBOSS.pwn(2421) : warning 217: loose indentation
TONBOSS.pwn(2498) : warning 217: loose indentation
TONBOSS.pwn(2577) : warning 217: loose indentation
TONBOSS.pwn(2811) : warning 217: loose indentation
TONBOSS.pwn(2844) : warning 217: loose indentation
TONBOSS.pwn(2885) : warning 217: loose indentation
TONBOSS.pwn(2920) : warning 217: loose indentation
TONBOSS.pwn(2925) : warning 217: loose indentation
TONBOSS.pwn(3027) : warning 217: loose indentation
C'est pas fini loin de la..
TONBOSS.pwn(11394) : error 030: compound statement not closed at the end of file (started at line 11388)
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


J'ai fais une grosse gafffe !   :wall
Titre: Re : GROS blème
Posté par: Ssk le 24 Août 2009, 08:04:02
Indente ton code ( aligne les lignes)
Titre: Re : GROS blème
Posté par: cristab le 24 Août 2009, 10:01:50
et ton erreure qui te reste est du a ce genre


Expemple

<?php
/*ici je test car je veut test*/
/*blablabla*/
if(spawn(playerid) == 1  && serveurmaintenance == 1)
{
   
SendClientMessage(playerid,Vert,"Serveur en maintenance");
   
Kick(playerid);
}
?>

Je rapelle c'est un exemple ^^

ce que tu voit en orange est pas bon et tu as du faire cette erreure la remplace comme ceci

<?php
/*ici je test car je veut test
blablabla*/
if(spawn(playerid) == 1  && serveurmaintenance == 1)
{
   
SendClientMessage(playerid,Vert,"Serveur en maintenance");
   
Kick(playerid);
}
?>



PS les balises php me permette de mettre l'exemple en couleur pour que sa saute au yeux
Titre: Re : GROS blème
Posté par: Ssk le 24 Août 2009, 12:37:10
Béh la tes deux code donnee sont correctement indenter
Titre: Re : GROS blème
Posté par: cristab le 24 Août 2009, 13:21:22
attention le 1 code a une erreure c'est pour sa que sa lui affiche ceci

TONBOSS.pwn(11394) : error 030: compound statement not closed at the end of file (started at line 11388)
Titre: Re : GROS blème
Posté par: 69scorpion le 24 Août 2009, 13:53:16
Oué Merci pour l'erreur mais je n'utilise pas les "/* */" oour commenter mais "//" et j'ai une recherche (/*) j'en est trouver aucun.
Pour les warning faut que je Indente mes codes ya plus de 500 warnings je voulais savoir si ya pas un système plus rapide pour les idente ?
Titre: Re : GROS blème
Posté par: cristab le 24 Août 2009, 14:15:03
pour l'indendation le plus simple es de coder proprement des le debut
Titre: Re : GROS blème
Posté par: 69scorpion le 24 Août 2009, 15:21:09
Oué j'vais tout refaire
Titre: Re : GROS blème
Posté par: ApocKalipsS le 24 Août 2009, 16:32:07
Pour les commentaires :

// sert à commenter une ligne


/*
sert
à
commenter
tout
un
texte
*/