19.11.2014, 16:27
(
Последний раз редактировалось Haides; 19.11.2014 в 16:29.
Причина: I forgot to put the code with dialogs in it.. sry
)
Im doing /ah command and I'm stuck here at this point.
So... This is the Code (sorry if it looks unproffesional, I don't even know if this is correct):
Let me explain a bit. I was trying to get this text:
In one msg box but I cant do it in one line so I was trying out stuff and now I'm here with this noobish code and no clue what now.
I have 2 questions:
-Is this the right way? If it's not then can you explain how to do it right?
-Is it possible to put strings inside of one line and use New Line (\n or ~n~) or smthing like that)?
So... This is the Code (sorry if it looks unproffesional, I don't even know if this is correct):
Код:
new ah10[256]; format(ah10,sizeof(ah10), "/a /aname /aduty /apm /kick /(un)ban(reason/ip) /(s)check /slap /spec /ar /dr /(n)mute /stopfire\n"); new ah11[256]; format(ah11,sizeof(ah11), "/goto(loc) /gethere /revive /refund /ipcheck /ch /freeze /unfreeze /fa /ufa /healnear /startfire\n"); new ah12[256]; format(ah12,sizeof(ah12), "/setvw /setint /makevip /disarm /gotoveh /getveh /sendtols /tuteject /forcetut /listen /lastseen\n"); new ah13[256]; format(ah13,sizeof(ah13), "/setskin /banaccount /prison(account) /approve /deny /prisoners /contracts /clearcontract\n"); new ah14[256]; format(ah14,sizeof(ah14), "/clearwanted /respawn(radius) /gotopos /sendtoid /veh /interiors /pfine /fine /listguns\n"); new ah15[256]; format(ah15,sizeof(ah15), "/(show/clear)flag(s) /reportmute /(clear)warn(s) /refuel /givecookie /tog /tabbed /afk"); ShowPlayerDialog(playerid, ADMINHELP_LVL1, DIALOG_STYLE_MSGBOX, "Android Balkan RP - Admin Level 1", "ah10 ah11 ah12 ah13 ah14 ah15", "Ok", "Izadji"); //I know this last line is not correct but I made it there so you can see what I'm trying to do
Код:
/a /aname /aduty /apm /kick /(un)ban(reason/ip) /(s)check /slap /spec /ar /dr /(n)mute /stopfire\n /goto(loc) /gethere /revive /refund /ipcheck /ch /freeze /unfreeze /fa /ufa /healnear /startfire\n /setvw /setint /makevip /disarm /gotoveh /getveh /sendtols /tuteject /forcetut /listen /lastseen\n /setskin /banaccount /prison(account) /approve /deny /prisoners /contracts /clearcontract\n /clearwanted /respawn(radius) /gotopos /sendtoid /veh /interiors /pfine /fine /listguns\n /(show/clear)flag(s) /reportmute /(clear)warn(s) /refuel /givecookie /tog /tabbed /afk
I have 2 questions:
-Is this the right way? If it's not then can you explain how to do it right?
-Is it possible to put strings inside of one line and use New Line (\n or ~n~) or smthing like that)?