Guyy 14 Odesláno: 11. Leden, 2018 Share Odesláno: 11. Leden, 2018 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 More sharing options...
0 Globální moderátor HighPrint 177 Odesláno: 11. Leden, 2018 Globální moderátor Share Odesláno: 11. Leden, 2018 titl ani commen nejsou pole, cpeš je do funkce, která očekává pole (playerid, Title[], Comment[], Delay) 1 Link to comment Share on other sites More sharing options...
0 Guyy 14 Odesláno: 11. Leden, 2018 Author Share Odesláno: 11. Leden, 2018 new titl[10], commen[26]; Tak ? Takže vždy ked mám vo funkcií "Niečo[]" tak to musí byť premenná s číslom ?? Link to comment Share on other sites More sharing options...
0 Globální moderátor HighPrint 177 Odesláno: 11. Leden, 2018 Globální moderátor Share Odesláno: 11. Leden, 2018 Dost laicky receno... ano Link to comment Share on other sites More sharing options...
Dotaz
Guyy 14
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:
Dodatečné poznámky:
--
Link to comment
Share on other sites
3 odpovědí na tuto otázku
Recommended Posts