R3muSGFX Posted February 17, 2015 Report Share Posted February 17, 2015 Problema intalnita: Am o functie "ShowErrorDialog" si se pare ca nu imi accepta sintaxa pe care am dat-o eu. Warning: warning 202: number of arguments does not match definition Linii cod: ShowErrorDialog(playerid, "Nu poti cumpara mai multe masini. Maxim: %s" ,PlayerInfo[playerid][pOwnableVehicles]); Ati incercat sa rezovlati singur: Da... Imagine: Cum as putea sa trec acea informatie in acel dialog, daca se poate ? Sau ar trebui sa fac un dialog nou ? Multumesc aniticipat. Contact: Mail: [email protected]Y!M: r3mus.onlyproSkype: r3mus.onlypro Link to comment Share on other sites More sharing options...
0 kwnx Posted February 18, 2015 Report Share Posted February 18, 2015 (edited) Vezi daca ai facut definit bine functia "SendErrorDialog" stock bool:Fals = false; #define ShowErrorDialog(%0,%1,%2,%3) do{ new string[3089]; string[0] = EOS; format(string, sizeof(string), (%2), %3); ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "ERROR", string, "OK", ""); } while(Fals) Edited February 18, 2015 by KnowN 2 Link to comment Share on other sites More sharing options...
0 Neonkiller Posted February 18, 2015 Report Share Posted February 18, 2015 (edited) Pentru a arata un numar intr-un dialog, trebuie sa pui %d, nu %s. Nu cred ca numarul maxim de vehicule detinute este definita in PlayerInfo[playerid][pOwnableVehicles] Edited February 18, 2015 by Neonkiller 1 Forum Development site Link to comment Share on other sites More sharing options...
0 NoNamed Posted February 18, 2015 Report Share Posted February 18, 2015 In primul rand, %s folosesti pentru nume iar %d pentru numere, in al doilea rand nu trebuie dupa mesaj sa adaugi doua butoane gen Close si OK sau doar OK sau doar Close sau doar cum vrei? ) Si in al treilea rand, la final trebuie sa folosesti functia care arata cate masini poti detine, ownablevehicles nu arata masinile ce pot fi detinute? 1 Link to comment Share on other sites More sharing options...
0 kwnx Posted February 19, 2015 Report Share Posted February 19, 2015 In primul rand, %s folosesti pentru nume iar %d pentru numere, in al doilea rand nu trebuie dupa mesaj sa adaugi doua butoane gen Close si OK sau doar OK sau doar Close sau doar cum vrei? ) Si in al treilea rand, la final trebuie sa folosesti functia care arata cate masini poti detine, ownablevehicles nu arata masinile ce pot fi detinute? Ce functie am facut eu, e functie de genu üniversala"nu doar pentru acel dialog. In legatura cu %s, intradevar e %d, am gresit, motivele fiind din graba. 1 Link to comment Share on other sites More sharing options...
0 R3muSGFX Posted February 19, 2015 Author Report Share Posted February 19, 2015 Am rezolvat pana la urma. Multumesc frumos pentru ajutor. Nu era problema de la %s chiar daca am gresit eu acolo . ShowDialogError primeste doar 2 parametrii nu 3 cum am pus eu. Am folosit un string pentru afisarea textului. Multumesc pentru ajutor tuturor ! Contact: Mail: [email protected]Y!M: r3mus.onlyproSkype: r3mus.onlypro Link to comment Share on other sites More sharing options...
Question
R3muSGFX
Problema intalnita: Am o functie "ShowErrorDialog" si se pare ca nu imi accepta sintaxa pe care am dat-o eu.
Warning: warning 202: number of arguments does not match definition
Linii cod:
Ati incercat sa rezovlati singur: Da...
Imagine:
Cum as putea sa trec acea informatie in acel dialog, daca se poate ? Sau ar trebui sa fac un dialog nou ?
Multumesc aniticipat.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts