Jump to content
  • 0

pomoc InfoBox zobrazenie Textdrawu


Guyy

Dotaz

Popis problému:

Zrobil som si textdraw na InfoBox, všetky podmienky, zobrazenie, skritie mám.. Ale dáva mi Error mismatch pri podmienke na Zobrazenie textrawu :/ Ďakujem za pomoc

 

Chyby/varování kompilátoru a při běhu:

error 035: argument type mismatch (argument 2)

 

Kód:

 

CMD:showinfobox(playerid, params[])
{
  new id, titl, commen, dela;
  if(!IsPlayerAdmin(playerid)) return 0;
  if(sscanf(params, "ussi", id, titl, commen, dela)) return SendClientMessage(playerid, -1, "...");
  ShowPlayerInfoBox(id, titl, commen, dela); // Riadok s Errorom
  return (true);
}


public ShowPlayerInfoBox(playerid, Title[], Comment[], Delay)
{
  if(ShowedInfoBox[playerid] == false)
  {
    TextDrawSetString(TextdrawInfoBox0[playerid], Title);
    TextDrawSetString(TextdrawInfoBox1[playerid], Comment);
    TextDrawShowForPlayer(playerid, TextdrawInfoBox0[playerid]);
    TextDrawShowForPlayer(playerid, TextdrawInfoBox1[playerid]);
    SetTimerEx("HideInfoBox", Delay, false, "i", playerid);
  }
  else SendClientMessage(playerid, -1, "{FF0000}[ %s ] {FFFFFF}%s", Title, Comment);
  return 1;
}

 

 

 

Dodatečné poznámky:

--

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...