Szerző Téma: Warnings, nem tölt be a script  (Megtekintve 1414 alkalommal)

Warnings, nem tölt be a script
« Dátum: 2012. Július 19. - 20:06:45 »
0
Sziasztok! tud valaki segíteni ebben hogy mi lehet a baj?
És a scriptet be sem lehet tölteni, nem tudom hogy ez-e az oka.
 
new map_name[64], x, y, z, idx = 0;
    map_name = strtok(OriginsArray[topMapId], idx, \'|\');
   
    x = floatstr(strtok(OriginsArray[topMapId], idx, \'|\'));
    y = floatstr(strtok(OriginsArray[topMapId], idx, \'|\'));
    z = floatstr(strtok(OriginsArray[topMapId], idx, \'|\'));
   
    new winnerStr[128];
    format(winnerStr, 128, \"A nyertes map:%s\", map_name);

 
Hiba:
 
C:\\Users\\Szeb1\\Downloads\\vote2.pwn(111) : warning 213: tag mismatch
(112) : warning 213: tag mismatch
(113) : warning 213: tag mismatch
(113) : warning 204: symbol is assigned a value that is never used: \"z\"
(112) : warning 204: symbol is assigned a value that is never used: \"y\"
(111) : warning 204: symbol is assigned a value that is never used: \"x\"

Nem elérhető JBauer

  • 1407
    • Profil megtekintése
Warnings, nem tölt be a script
« Válasz #1 Dátum: 2012. Július 19. - 20:26:25 »
0
new map_name[64], Float: x, Float: y, Float: z, idx = 0;
    map_name = strtok(OriginsArray[topMapId], idx, \'|\');
   
    x = floatstr(strtok(OriginsArray[topMapId], idx, \'|\'));
    y = floatstr(strtok(OriginsArray[topMapId], idx, \'|\'));
    z = floatstr(strtok(OriginsArray[topMapId], idx, \'|\'));
   
    new winnerStr[128];
    format(winnerStr, 128, \"A nyertes map:%s\", map_name);

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Warnings, nem tölt be a script
« Válasz #2 Dátum: 2012. Július 19. - 20:26:37 »
0
(113) : warning 204: symbol is assigned a value that is never used: \"z\"
(112) : warning 204: symbol is assigned a value that is never used: \"y\"
(111) : warning 204: symbol is assigned a value that is never used: \"x\"
[/quote]
ezeknek ez a hibája :
 
new Float:x,Float:y,Float:z;

Nem elérhető JBauer

  • 1407
    • Profil megtekintése
Warnings, nem tölt be a script
« Válasz #3 Dátum: 2012. Július 19. - 20:32:36 »
0
Idézetet írta: ZzzzzZ date=1342722397\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"24703\" data-ipsquote-contentclass=\"forums_Topic

(113) : warning 204: symbol is assigned a value that is never used: \"z\"
(112) : warning 204: symbol is assigned a value that is never used: \"y\"
(111) : warning 204: symbol is assigned a value that is never used: \"x\"
ezeknek ez a hibája :
 
new Float:x,Float:y,Float:z;

 

[/quote]
Nem, a \'Float\' hiánya a
(111) : warning 213: tag mismatch
(112) : warning 213: tag mismatch
(113) : warning 213: tag mismatch

 warningot okozta.

Warnings, nem tölt be a script
« Válasz #4 Dátum: 2012. Július 19. - 20:36:48 »
0
Ez a három warning továbbra is van.
 
113) : warning 204: symbol is assigned a value that is never used: \"z\"
(112) : warning 204: symbol is assigned a value that is never used: \"y\"
(111) : warning 204: symbol is assigned a value that is never used: \"x\"

 
Ezek pedig megoldódtak:
 
(111) : warning 213: tag mismatch
(112) : warning 213: tag mismatch
(113) : warning 213: tag mismatch

Nem elérhető Norby

  • 1575
    • Profil megtekintése
Warnings, nem tölt be a script
« Válasz #5 Dátum: 2012. Július 19. - 21:06:32 »
0
Töröld ezeket: Float:x,Float:y,Float:z

Warnings, nem tölt be a script
« Válasz #6 Dátum: 2012. Július 19. - 21:47:17 »
0
Köszi mindenkinek, a probléma megoldódott.
na haragudjatok, de lenne még egy dolog amit értek  :whistle:
 
if(!IsPlayerConnected(playerid) || !IsPlayerNPC(playerid))
    return -1;
SetPVarInt(playerid, \"votedForMap\", -1);
new String:MapsStr[MAX_MAPS * (32 + 4)];
for(new i = 0; i < MAX_MAPS; i++)
{
    new idx = 0,
       lclStr[64];
lclStr = strtok(OriginsArray, idx, \'|\');
format(MapsStr, sizeof MapsStr, \"%s%i. %s\\n\", MapsStr, i, lclStr);
}
ShowPlayerDialog(playerid, dialogMapchange, DIALOG_STYLE_LIST, \"Map vote\", MapsStr, \"Szavazok\", \"\");

 
Hiba: warning 213: tag mismatch...

Nem elérhető JBauer

  • 1407
    • Profil megtekintése
Warnings, nem tölt be a script
« Válasz #7 Dátum: 2012. Július 19. - 22:02:46 »
0
Melyik sor?

Warnings, nem tölt be a script
« Válasz #8 Dátum: 2012. Július 19. - 22:31:17 »
0
if(!IsPlayerConnected(playerid) || !IsPlayerNPC(playerid))
    return -1;
SetPVarInt(playerid, \"votedForMap\", -1);
new String:MapsStr[MAX_MAPS * (32 + 4)];
for(new i = 0; i < MAX_MAPS; i++)
{
    new idx = 0,
       lclStr[64];
   lclStr = strtok(OriginsArray, idx, \'|\');

   
format(MapsStr, sizeof MapsStr, \"%s%i. %s\\n\", MapsStr, i, lclStr); // 56. sor 2x ugyan az a hiba (tag mismatch)

}


ShowPlayerDialog(playerid, dialogMapchange, DIALOG_STYLE_LIST, \"Map vote\", MapsStr, \"Szavazok\", \"\"); // 59. sor (tag mismatch)

Szerk.: Bocs hogy nem [code.-ban írtam ki, csak ki akartam jelölni pirossal a hibát...
« Utoljára szerkesztve: 2012. Július 19. - 22:33:21 írta A_Szeb1 »

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
Warnings, nem tölt be a script
« Válasz #9 Dátum: 2012. Július 19. - 22:46:59 »
0
symbol is assigned a value that is never used

 
Jelen esetben a jelentése: a változó nincs használatban.


format(MapsStr, sizeof MapsStr, \"%s%i. %s\\n\", MapsStr, i, lclStr);

 
Két zárójelet lehagytál
 
format(MapsStr, sizeof(MapsStr), \"%s%i. %s\\n\", MapsStr, i, lclStr);

Warnings, nem tölt be a script
« Válasz #10 Dátum: 2012. Július 19. - 22:53:38 »
0
Nem az a hiba hogy le van hagyva a zárójel

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal