GTAOnline.net
San Andreas Multiplayer (sa:mp) => Problèmes et bugs => Discussion démarrée par: Bibiche le 08 Juin 2011, 14:05:52
-
Hey bonjour à tous,
J'ai pris Raven's RP, je l'ai compilé, et voilà ce que ça me donne :
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(25115) : error 021: symbol already defined: "strtok"
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(25130) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(26641) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(26701) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(26754) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(27422) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(27481) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(28162) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(28190) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(28201) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(28261) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(28530) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(28557) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(28587) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(28595) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(28629) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(28637) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(28670) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(28715) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(2877 : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(28836) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(28844) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(28879) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(28887) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(29114) : error 047: array sizes do not match, or destination array is too small
C:\Users\anne\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(2916 : error 047: array sizes do not match, or destination array is too small
Merci à ceux qui m'aideront :')
-
Lu,
26 Erreurs => Il doit te manquer une accolade fermante ( "}" ) dans ton script.
Ps : si tu ne sais pas ce que cette erreur veut dire, go commencer par scripter un serveur de stunt, t'attaque pas au RolePlay ;)
-
Et un moyen de savoir où il manque un } ?
-
stopped le strtok est deja definer il a etait definie deux fois donc il faut en supprimer un pour l'autre ligne d'erreure apparament une var est declarer trop petite pas rapport a son utilisation
-
Augmente la taille de tes variables ( aux lignes qui sont inscrites sur les erreurs ) à 256 cellules.
PS change le titre du sujet, ou je serai dans l'obligation de lock.
-
Titre édité.
Donc ..
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[128];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
Ca c'est la première erreur, je dois donc modifier 128 par 256 ?
Et pour le "already", j'ai cherché mais rien ne ressemble à ce bout, donc je vois pas pourquoi il est déjà défini.
-
stopped le strtok est deja definer il a etait definie deux fois donc il faut en supprimer un pour l'autre ligne d'erreure apparament une var est declarer trop petite pas rapport a son utilisation
Augmente la taille de tes variables ( aux lignes qui sont inscrites sur les erreurs ) à 256 cellules.
peu etre que tu veras mieux si je grossit un peu plus
-
Ca ne marche pas, ou du moins je dois m'y prendre mal.
-
Bug toujours pas résolu .. quelqu'un pourrait vraiment m'aider ? :x
-
ga relire mon post juste audessus des tiens
-
Après 1h passé dessus, j'ai réussi :D
Merci ;)
Résolu.