Oko [OFF] [ON] Dialog

Započeo Skorpija_026, Jun 27, 2019, 17:43:20 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Problem(error/warning): Radim Mini igre u dialog i sad ocu da ima ono [off] [on] da li je uplaljenja ili nije i ja ispisem kod i izadjemo mi warrning
[pawn]
C:\Users\38165\Desktop\Helix Gaming OGC\gamemodes\helix_project.pwn(13487) : warning 215: expression has no effect
C:\Users\38165\Desktop\Helix Gaming OGC\gamemodes\helix_project.pwn(13487) : warning 215: expression has no effect
C:\Users\38165\Desktop\Helix Gaming OGC\gamemodes\helix_project.pwn(13488) : warning 215: expression has no effect
C:\Users\38165\Desktop\Helix Gaming OGC\gamemodes\helix_project.pwn(13488) : warning 215: expression has no effect[/pawn]
Deo skripte: [ pawn ]vaš odgovor[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [pawn]YCMD:hggames(playerid, params[],help)
{
    if(UlogovanProvera[playerid] == 0) return SendMessage( playerid, "Morate se ulogovati da bi pisali.");
    if(PlayerInfo[playerid][pAdmin] < 4) return SendErrorMessage( playerid, "Niste ovlasceni za ovu komandu!");
   new str[1100];
   format(str, sizeof(str),"{FFFFFF}Vrsta:\t{FFFFFF}Stanje:\nIgra na ispadanje\t%s\nTut Wars\t%s\t%s\nPotapanje brodovima\t[{CCCCCC}%d{FFFFFF}]\nSkydive\t%s");
   ((MI[INI]) ? ("[{33AA33}ON{FFFFFF}]") : ("[{FF0000}OFF{FFFFFF}]")), ((MI[TW]) ? ("[{33AA33}ON{FFFFFF}]") : ("[{FF0000}OFF{FFFFFF}]"));
   ((MI[PB]) ? ("[{33AA33}ON{FFFFFF}]") : ("[{FF0000}OFF{FFFFFF}]")), ((MI[SD]) ? ("[{33AA33}ON{FFFFFF}]") : ("[{FF0000}OFF{FFFFFF}]"));
   SPD(playerid, 16138, DIALOG_STYLE_TABLIST_HEADERS, "{c8f442}Mini Igre", str, "Izaberi", "Odustani");
   return 1;
}[/pawn]
Slika/video ingame problema(obavezno ako je ingame problem): link slike
Vandals Project OGC
[size=11.25pt]Vandals Project OGC[/size][/font]
[/color]

[pawn]
YCMD:hggames(playerid, params[], help)
{
    if(UlogovanProvera[playerid] == 0) return SendMessage( playerid, "Morate se ulogovati da bi pisali.");
    if(PlayerInfo[playerid][pAdmin] < 4) return SendErrorMessage( playerid, "Niste ovlasceni za ovu komandu!");

   new str[200];
   format(str, sizeof(str),
      "{FFFFFF}Vrsta:\t{FFFFFF}Stanje:\n\
      Igra na ispadanje\t%s\n\
      Tut Wars\t%s\n\
      Potapanje brodovima\t%s\n\
      Skydive\t%s",
         (MI[INI]) ? ("[{33AA33}ON{FFFFFF}]") : ("[{FF0000}OFF{FFFFFF}]"),
         (MI[TW]) ? ("[{33AA33}ON{FFFFFF}]") : ("[{FF0000}OFF{FFFFFF}]"),
         (MI[PB]) ? ("[{33AA33}ON{FFFFFF}]") : ("[{FF0000}OFF{FFFFFF}]"),
         (MI[SD]) ? ("[{33AA33}ON{FFFFFF}]") : ("[{FF0000}OFF{FFFFFF}]"));

   SPD(playerid, 16138, DIALOG_STYLE_TABLIST_HEADERS, "{c8f442}Mini Igre", str, "Izaberi", "Odustani");
   return 1;
}
[/pawn]


Citat: mumitza. poslato Jun 27, 2019, 18:25:21 POSLE PODNE
[pawn]
YCMD:hggames(playerid, params[], help)
{
    if(UlogovanProvera[playerid] == 0) return SendMessage( playerid, "Morate se ulogovati da bi pisali.");
    if(PlayerInfo[playerid][pAdmin] < 4) return SendErrorMessage( playerid, "Niste ovlasceni za ovu komandu!");

   new str[200];
   format(str, sizeof(str),
      "{FFFFFF}Vrsta:\t{FFFFFF}Stanje:\n\
      Igra na ispadanje\t%s\n\
      Tut Wars\t%s\n\
      Potapanje brodovima\t%s\n\
      Skydive\t%s",
         (MI[INI]) ? ("[{33AA33}ON{FFFFFF}]") : ("[{FF0000}OFF{FFFFFF}]"),
         (MI[TW]) ? ("[{33AA33}ON{FFFFFF}]") : ("[{FF0000}OFF{FFFFFF}]"),
         (MI[PB]) ? ("[{33AA33}ON{FFFFFF}]") : ("[{FF0000}OFF{FFFFFF}]"),
         (MI[SD]) ? ("[{33AA33}ON{FFFFFF}]") : ("[{FF0000}OFF{FFFFFF}]"));

   SPD(playerid, 16138, DIALOG_STYLE_TABLIST_HEADERS, "{c8f442}Mini Igre", str, "Izaberi", "Odustani");
   return 1;
}
[/pawn]
Fixed hvala mumo, nek neko locka
Vandals Project OGC
[size=11.25pt]Vandals Project OGC[/size][/font]
[/color]