30.12.2013, 12:54
So i am creating a roleplay base on San Fierro, from scratch.
Everything goes well except i don't know how do i do this in this part.
I know how to do the response, but i don't want to do the client message displaying by using switch for just these listitems.
I don't want this:
I want a shortcut, is there any shortcut for this something like adding the listitems? or anything?
Everything goes well except i don't know how do i do this in this part.
pawn Код:
ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_LIST, "Your age is:",
"18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n40\n41\n42\n43\n44\n45\n46\n47\n48\n49\n50\n51\n52\n53\n54\n55\n56\n57\n58\n59\n60\n61\n62\n63\n64\n65\n66\n67\n68\n69\n70\n71\n72\n73\n74\n75\n76\n77\n78\n79\n80\n81\n82\n83\n84\n85\n86\n87\n88\n89\n90",\
"Proceed", "");
I don't want this:
pawn Код:
switch(listitem)
{
case 0:
{
}
case 1:
{
}
//till the end
}