Szerző Téma: Warning HELP  (Megtekintve 939 alkalommal)

Nem elérhető BoSS

  • 816
    • Profil megtekintése
Warning HELP
« Dátum: 2012. Március 12. - 16:29:54 »
0 Show voters
Sziasztok van két warningom ebben kérek segítséget,hogy kijavítsam.
az elsõ warning ez
C:\\Documents and Settings\\Rendszergazda\\Asztal\\Modtesztelés\\Fejlesztés\\Drift.pwn(4261) : warning 225: unreachable code
függvény ahol a hiba van.
 
    if(dialogid == 3)
    {
        if(response)
{
    if(listitem == 0)
    {
        if(!IsPlayerInAnyVehicle(playerid))
{
      SetPlayerPos(playerid,-325.1331,1533.0276,75.3594);
      SendClientMessage(playerid,COLOR_GREEN,\"Üdv Drift 1-en\");
}
else
{
      SetVehiclePos(GetPlayerVehicleID(playerid),-325.1331,1533.0276,75.3594);
}
    }
    if(listitem == 1)
    {
              SetPlayerPos(playerid, 3402.54223633,-1700.62658691,4.26254511);
    }
    if(listitem == 2)
    {
              SetPlayerPos(playerid, -325.1331,1533.0276,35.3594);
    }
        }
return 1;
  }
    return 0;
}
if(dialogid == Zene_Dialog)
{
if(response)
{
switch(listitem)
{
case 0:
{
PlayAudioStreamForPlayer(playerid,\"\"); //
}
}
}
}
return 0;
}

 
Második Warning
C:\\Documents and Settings\\Rendszergazda\\Asztal\\Modtesztelés\\Fejlesztés\\Drift.pwn(4436) : warning 203: symbol is never used: \"ret_memcpy\"
és a mod pedig 4435 soros...:S
Elõre is köszönöm a helpet.
« Utoljára szerkesztve: 2012. Március 12. - 16:39:02 írta BoSS »

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
Warning HELP
« Válasz #1 Dátum: 2012. Március 12. - 16:37:33 »
0 Show voters
Szeintem valami változó lehet a hiba, mert nekem is volt ilyen.

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
Warning HELP
« Válasz #2 Dátum: 2012. Március 12. - 16:39:10 »
0 Show voters
1. Figyelmeztetés
4261. Sort és az elõtte-utána lévõ egy sort.
2. Figyelmeztetés
Mód elejére.
#pragma unused ret_memcpy

Nem elérhető BoSS

  • 816
    • Profil megtekintése
Warning HELP
« Válasz #3 Dátum: 2012. Március 12. - 16:42:13 »
0 Show voters
Idézetet írta: Cannonn date=1331566750\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"18369\" data-ipsquote-contentclass=\"forums_Topic
1. Figyelmeztetés
4261. Sort és az elõtte-utána lévõ egy sort.
2. Figyelmeztetés
Mód elejére.
#pragma unused ret_memcpy
 
most már csak egy warning van a ret_memcpy az már jó.
De a másikkal pontosan mit csináljak?

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
Warning HELP
« Válasz #4 Dátum: 2012. Március 12. - 16:52:38 »
0 Show voters
Másold be a 4261. sort.

Nem elérhető BoSS

  • 816
    • Profil megtekintése
Warning HELP
« Válasz #5 Dátum: 2012. Március 12. - 16:59:33 »
0 Show voters
Idézetet írta: Flash date=1331567558\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"18369\" data-ipsquote-contentclass=\"forums_Topic
Másold be a 4261. sort.
 
[pawn]if(dialogid == Zene_Dialog)[/pawn]

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
Warning HELP
« Válasz #6 Dátum: 2012. Március 12. - 17:01:03 »
0 Show voters
Definálva van a Zene_Dialog?

Nem elérhető BoSS

  • 816
    • Profil megtekintése
Warning HELP
« Válasz #7 Dátum: 2012. Március 12. - 17:03:24 »
0 Show voters
Idézetet írta: Flash date=1331568063\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"18369\" data-ipsquote-contentclass=\"forums_Topic
Definálva van a Zene_Dialog?
 
PErsze azt tegnap raktam be az elõtt is ugyan ez a hiba volt ott csak az ez alattira mutatott ....nem vágom mi van :(

Nem elérhető DrAkE

  • 2078
    • Profil megtekintése
Warning HELP
« Válasz #8 Dátum: 2012. Március 12. - 17:08:48 »
0 Show voters
A második dialog az OnDialogResponse alatt van (magyarul a callback zárása után)

Nem elérhető BoSS

  • 816
    • Profil megtekintése
Warning HELP
« Válasz #9 Dátum: 2012. Március 12. - 17:10:29 »
0 Show voters
Idézetet írta: DrAkE date=1331568528\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"18369\" data-ipsquote-contentclass=\"forums_Topic
A második dialog az OnDialogResponse alatt van (magyarul a callback zárása után)
 
Már meg van a hiba zárok egy \"}\" ilyen kellett még a végére. köszönöm a helpet.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal