warning 202: number of arguments does not match definition
#1

Hii .. I'm making a vehicles dealership .. but as the list is too long I used strcat .. then it shows me a warning (title) while compiling .. the line meant by the warning is the last one "ShowPlayerDialog....."
can someone please help me fixing that .. thanks

Код:
new string[1024];
strcat(string, "{FFFFFF}Infernus {45FF7F}(1000000$)\n{FFFFFF}Bullet {45FF7F}(800000$)\n{FFFFFF}Buffalo {45FF7F}(500000$)\n{FFFFFF}Cheetah {45FF7F}(700000$)\n{FFFFFF}Banshee {45FF7F}(850000$)\n");
strcat(string, "{FFFFFF}Turismo {45FF7F}(900000$)\n{FFFFFF}Sabre {45FF7F}(420000$)\n{FFFFFF}ZR-350 {45FF7F}(650000$)\n{FFFFFF}Comet {45FF7F}(560000$)\n{FFFFFF}Hotring {45FF7F}(600000$)\n");
strcat(string, "{FFFFFF}Hotring Racer 1 {45FF7F}(800000$)\n{FFFFFF}Hotring Racer 2 {45FF7F}(820000$)\n{FFFFFF}Bloodring Banger {45FF7F}(570000$)\n{FFFFFF}Super GT {45FF7F}(600000$)\n");
strcat(string, "{FFFFFF}Jester {45FF7F}(470000$)\n{FFFFFF}Sultan {45FF7F}(500000$)\n{FFFFFF}Stratum {45FF7F}(400000$)\n{FFFFFF}Elegy {45FF7F}(280000$)\n{FFFFFF}Flash {45FF7F}(300000$)\n");
strcat(string, "{FFFFFF}Euros {45FF7F}(350000$)\n{FFFFFF}Club {45FF7F}(320000$)\n{FFFFFF}Alpha {45FF7F}(430000$)\n{FFFFFF}Phoenix {45FF7F}(700000$)\n");
ShowPlayerDialog(playerid,18,DIALOG_STYLE_LIST, string, "Buy", "Cancel");
Reply
#2

ShowPlayerDialog(playerid,18,DIALOG_STYLE_LIST, "Title", string, "Buy", "Cancel");
Reply
#3

LOL .. cant believe I didnt see that .. thanks + rep from me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)