GTAOnline.net

San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: ang3boy le 24 Septembre 2009, 18:49:13

Titre: Petit Soucis
Posté par: ang3boy le 24 Septembre 2009, 18:49:13
Citer
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(6788) : error 017: undefined symbol "SetPDistance"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(8358) : error 017: undefined symbol "pPMs"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(8365) : error 017: undefined symbol "pPMs"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(8375) : error 017: undefined symbol "pCMDs"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(8382) : error 017: undefined symbol "pCMDs"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(8398) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(8938) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(9072) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(18534) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(18570) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(20290) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(20342) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(20699) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(20870) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(21714) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(22202) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(23599) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(23949) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(24130) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(24197) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(24304) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(24462) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(24501) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(24556) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(24651) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\AnG3BoY\Bureau\France GamerZ Production\gamemode\FranceGamerZ-2.0.pwn(24968) : error 017: undefined symbol "ReturnUser"

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


26 Errors.

Je sais pas pourquoi quand je l'ai défini avec

#define ...

ba sa me provoque d'autre problème
Titre: Re : Petit Soucis
Posté par: Ssk le 24 Septembre 2009, 19:21:27
tout ceux qui est dans les accolade sont des fonction manquante ou bien une erreur d' accolade
Titre: Re : Petit Soucis
Posté par: cristab le 24 Septembre 2009, 19:30:52
je pencherais pour les fonction manquante
Titre: Re : Petit Soucis
Posté par: MrFredo le 24 Septembre 2009, 19:48:57
Moi j'penche plutot sur une accolade manquante (26 erreur est souvent = a accolade manquante si j'me rapel bien ^^)
Titre: Re : Petit Soucis
Posté par: cristab le 24 Septembre 2009, 20:01:18
exacte mais a savoir 26 erreures et les maximum que pawno puisse detecter comme erreure mais vu le nombre d'erreure avec ceci "ReturnUser" je suppose donc qu'il n'as pas la fonction ReturnUser dans son script
Titre: Re : Petit Soucis
Posté par: ang3boy le 24 Septembre 2009, 20:11:13
J'adore vos parole experte mais résultat des comptes je doit rajouter ou retirer quoi?  :lock


PS : Fredo j'ai installer ton Gveh , et quand je tape /veh le vehicule n'apparait pas =)
Et puis j'aimerai savoir si le vehsave marche bien cette fois.
Car la derniere fois au bout du deuxieme conésionnaire que je fais quand j'ai relancer y avais plus aucune voiture =) ::)
Titre: Re : Petit Soucis
Posté par: cristab le 24 Septembre 2009, 20:59:01
sont include n'a pas etait modifier depuis pas mal de temps
Titre: Re : Petit Soucis
Posté par: ang3boy le 25 Septembre 2009, 14:40:57
Brefs pouvais vous me dire ce que je doit changer ou rajouter ? :(
Titre: Re : Petit Soucis
Posté par: Ssk le 25 Septembre 2009, 16:33:20
béh les fonction

ReturnUser
pPms
pCMDs

et voila maintenant a toi de les trouver xD
Titre: Re : Petit Soucis
Posté par: Syg le 25 Septembre 2009, 22:42:56
Ce sont peut-être des variables plutôt que des fonctions.

++
Syg
Titre: Re : Petit Soucis
Posté par: cristab le 25 Septembre 2009, 23:59:37
ce sont bien des fonctions


ReturnUser

ReturnUser(text[], playerid = INVALID_PLAYER_ID)
{
new pos = 0;
while (text[pos] < 0x21)
{
if (text[pos] == 0) return INVALID_PLAYER_ID;
pos++;
}
new userid = INVALID_PLAYER_ID;
if (IsNumeric(text[pos]))
{
userid = strval(text[pos]);
if (userid >=0 && userid < MAX_PLAYERS)
{
if(!IsPlayerConnected(userid))
userid = INVALID_PLAYER_ID;
else return userid;
}
}
new len = strlen(text[pos]);
new count = 0;
new pname[MAX_PLAYER_NAME];
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i, pname, sizeof (pname));
if (strcmp(pname, text[pos], true, len) == 0)
{
if (len == strlen(pname)) return i;
else
{
count++;
userid = i;
}
}
}
}
if (count != 1)
{
if (playerid != INVALID_PLAYER_ID)
{
if (count) SendClientMessage(playerid, Jaune, "veuillez entrer une ID et non le nom car trop de joueur en ligne.");
else SendClientMessage(playerid, Rouge, "nom du joueur introuvable.");
}
userid = INVALID_PLAYER_ID;
}
return userid;
}

pour les autres fonctions manquante elle devait etre dans le GM est malencontreusement effacer le seul moyen retrouver le GM a l'origine est rechercher les fonction manquante pour les inclures
Titre: Re : Petit Soucis
Posté par: S!m le 26 Septembre 2009, 16:19:57
Salut,

je pense que Syg parlait surtout de pPms et pCMDS qui semblent vraiment être des variables et non des fonctions...

++Sim++
Titre: Re : Petit Soucis
Posté par: cristab le 26 Septembre 2009, 16:54:02
possible le seul a savoir c'est celui qui a poser le  probleme ^^