if(dialogid == DIALOG_HELP)
{
switch(response)
{
case 1:
{
switch(listitem)
{
case 1:
{
new szString[128];
format(szString, sizeof(szString),"/rules /faq /(net)stats /inventory /quickstats /myguns /buylevel /upgrade /changepass /killcheckpoint /resetupgrades(100k)");
format(szString, sizeof(szString),"\n/w(hisper) /o(oc) /s(hout) /l(ow) /b /ad(vertisement)s /f(amily) /me /togooc /tognews /togfam /togwhisper /do /cancelcall");
format(szString, sizeof(szString),"\n/balance /withdraw /deposit /wiretransfer /abalance /awithdraw /adeposit /awiretransfer");
format(szString, sizeof(szString),"\n/pay /writecheck /cashchecks /charity /time /buy /(check)id /music /showlicenses /clothes /mywarrants");
format(szString, sizeof(szString),"\n/apply /skill /stopani /kill /buyclothes /droplicense /calculate /refuel /car /seatbelt /checkbelt, /defendtime");
format(szString, sizeof(szString),"\n/cancel /accept /eject /usepot /usecrack /contract /service /families /joinevent /checkplant /nextpaycheck, /nextgift, /pointtime");
format(szString, sizeof(szString),"\n/speedo /speedopos /viewmotd");
ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_MSGBOX,"Basic commands",szString,"Ok", "");
}
CMD:help(playerid, params[])
{
ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_LIST,"Help Menu","{33FF66}Basic Commands","Continue", "Cancel");
return 1;
}
new szString[256] , sString[256];
format(szString, sizeof(szString),"/rules /faq /(net)stats /inventory /quickstats /myguns /buylevel /upgrade /changepass /killcheckpoint /resetupgrades(100k)");
strcat(sString,szString);
format(szString, sizeof(szString),"\n/w(hisper) /o(oc) /s(hout) /l(ow) /b /ad(vertisement)s /f(amily) /me /togooc /tognews /togfam /togwhisper /do /cancelcall");
strcat(sString,szString);
format(szString, sizeof(szString),"\n/balance /withdraw /deposit /wiretransfer /abalance /awithdraw /adeposit /awiretransfer");
strcat(sString,szString);
format(szString, sizeof(szString),"\n/pay /writecheck /cashchecks /charity /time /buy /(check)id /music /showlicenses /clothes /mywarrants");
strcat(sString,szString);
format(szString, sizeof(szString),"\n/apply /skill /stopani /kill /buyclothes /droplicense /calculate /refuel /car /seatbelt /checkbelt, /defendtime");
strcat(sString,szString);
format(szString, sizeof(szString),"\n/cancel /accept /eject /usepot /usecrack /contract /service /families /joinevent /checkplant /nextpaycheck, /nextgift, /pointtime");
strcat(sString,szString);
format(szString, sizeof(szString),"\n/speedo /speedopos /viewmotd");
strcat(sString,szString);
ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_MSGBOX,"Basic commands",sString,"Ok", "");
PHP код:
|
if(dialogid == DIALOG_HELP)
{
if(response)
{
new szString[128];
format(szString, sizeof(szString),"/rules /faq /(net)stats /inventory /quickstats /myguns /buylevel /upgrade /changepass /killcheckpoint /resetupgrades(100k)");
format(szString, sizeof(szString),"\n/w(hisper) /o(oc) /s(hout) /l(ow) /b /ad(vertisement)s /f(amily) /me /togooc /tognews /togfam /togwhisper /do /cancelcall");
format(szString, sizeof(szString),"\n/balance /withdraw /deposit /wiretransfer /abalance /awithdraw /adeposit /awiretransfer");
format(szString, sizeof(szString),"\n/pay /writecheck /cashchecks /charity /time /buy /(check)id /music /showlicenses /clothes /mywarrants");
format(szString, sizeof(szString),"\n/apply /skill /stopani /kill /buyclothes /droplicense /calculate /refuel /car /seatbelt /checkbelt, /defendtime");
format(szString, sizeof(szString),"\n/cancel /accept /eject /usepot /usecrack /contract /service /families /joinevent /checkplant /nextpaycheck, /nextgift, /pointtime");
format(szString, sizeof(szString),"\n/speedo /speedopos /viewmotd");
ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_MSGBOX,"Basic commands",szString,"Ok", "");
}
}
if(dialogid == DIALOG_HELP) { if(response) { new szString[1200]; format(szString, sizeof(szString),"%s /rules /faq /(net)stats /inventory /quickstats /myguns /buylevel /upgrade /changepass /killcheckpoint /resetupgrades(100k)", szString); format(szString, sizeof(szString),"%s \n/w(hisper) /o(oc) /s(hout) /l(ow) /b /ad(vertisement)s /f(amily) /me /togooc /tognews /togfam /togwhisper /do /cancelcall", szString); format(szString, sizeof(szString),"%s \n/balance /withdraw /deposit /wiretransfer /abalance /awithdraw /adeposit /awiretransfer", szString); format(szString, sizeof(szString),"%s \n/pay /writecheck /cashchecks /charity /time /buy /(check)id /music /showlicenses /clothes /mywarrants", szString); format(szString, sizeof(szString),"%s \n/apply /skill /stopani /kill /buyclothes /droplicense /calculate /refuel /car /seatbelt /checkbelt, /defendtime", szString); format(szString, sizeof(szString),"%s \n/cancel /accept /eject /usepot /usecrack /contract /service /families /joinevent /checkplant /nextpaycheck, /nextgift, /pointtime", szString); format(szString, sizeof(szString),"%s \n/speedo /speedopos /viewmotd", szString); ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_MSGBOX,"Basic commands",szString,"Ok", ""); } }
new szString[700];
strcat(szString, "/rules /faq /(net)stats /inventory /quickstats /myguns /buylevel /upgrade /changepass /killcheckpoint /resetupgrades(100k)");
strcat(szString, "\n/w(hisper) /o(oc) /s(hout) /l(ow) /b /ad(vertisement)s /f(amily) /me /togooc /tognews /togfam /togwhisper /do /cancelcall");
strcat(szString, "\n/balance /withdraw /deposit /wiretransfer /abalance /awithdraw /adeposit /awiretransfer");
strcat(szString, "\n/pay /writecheck /cashchecks /charity /time /buy /(check)id /music /showlicenses /clothes /mywarrants");
strcat(szString, "\n/apply /skill /stopani /kill /buyclothes /droplicense /calculate /refuel /car /seatbelt /checkbelt, /defendtime");
strcat(szString, "\n/cancel /accept /eject /usepot /usecrack /contract /service /families /joinevent /checkplant /nextpaycheck, /nextgift, /pointtime");
strcat(szString, "\n/speedo /speedopos /viewmotd");
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Basic commands", szString, "Ok", "");
Do you guys even know how format works? You should avoid it if it's unnecessary... especially in an extremely obvious case like this...
pawn Код:
|