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
-
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.
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
-
Aa mon avis il te manque une simple acolade ;)
-
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 ?
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
-
Indente ton code ( aligne les lignes)
-
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
-
Béh la tes deux code donnee sont correctement indenter
-
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)
-
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 ?
-
pour l'indendation le plus simple es de coder proprement des le debut
-
Oué j'vais tout refaire
-
Pour les commentaires :
// sert à commenter une ligne
/*
sert
à
commenter
tout
un
texte
*/