02.05.2012, 13:21
It is compiling without problems,but,when i use /help,it shows the title,and an empty dialog...
Lines:
Photo:
[img width=500 height=375]/imageshack/img15/7199/samp022go.png[/img]
Uploaded with ImageShack.us
Lines:
pawn Код:
if(strcmp(cmd, "/help", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new HelpString[1050];
strcat( HelpString," CONT : /reguli /login /stats /carstats /changepass /levelup /upgrade /askq");
strcat( HelpString,"\n GENERAL : /pay /charity /time /buy /unrentmoto /unrentbike /id /drink /clothes /opendoor");
strcat( HelpString,"\n GENERAL : /resetupgrades /buygun /skill /licenses /showlicenses(/sl) /animlist /stopanim");
strcat( HelpString,"\n GENERAL : /re /cancel /accept /eject /usedrugs /fill /admins /oldcar /vehid /carinfos");
strcat( HelpString,"\n GENERAL : /wi /coin /trunk (/inv)entory /knock /knockout /give /sid /smoke /openhood");
strcat( HelpString,"\n CHAT : /pme /cw /o /s /low /b /me /do /togooc /tognews /togfam /togpm /togphone");
if(PlayerInfo[playerid][pJob] == 2) {
strcat( HelpString,"\n JOB : /free"); }
else if(PlayerInfo[playerid][pJob] == 3) {
strcat( HelpString,"\n JOB : /sex"); }
else if(PlayerInfo[playerid][pJob] == 4) {
strcat( HelpString,"\n JOB : /sellcannabis /sellcocain"); }
else if(PlayerInfo[playerid][pJob] == 5) {
strcat( HelpString,"\n JOB : /dropcar"); }
else if(PlayerInfo[playerid][pJob] == 7) {
strcat( HelpString,"\n JOB : /repair /refill /duty"); }
else if(PlayerInfo[playerid][pJob] == 8) {
strcat( HelpString,"\n JOB : /guard"); }
else if(PlayerInfo[playerid][pJob] == 9) {
strcat( HelpString,"\n JOB : /sellgun /buymats"); }
else if(PlayerInfo[playerid][pJob] == 12) {
strcat( HelpString,"\n JOB : /fight /boxstats /boxers"); }
else if(PlayerInfo[playerid][pJob] == 30) {
strcat( HelpString,"\n JOB : /fare"); }
else if(PlayerInfo[playerid][pJob] == 14) {
strcat( HelpString,"\n JOB : /starttur"); }
else if(PlayerInfo[playerid][pJob] == 15) {
strcat( HelpString,"\n JOB : /papers /bring /sellpaper"); }
else if(PlayerInfo[playerid][pJob] == 16) {
strcat( HelpString,"\n JOB : /truck"); }
else if(PlayerInfo[playerid][pJob] == 18) {
strcat( HelpString,"\n JOB : /startharvest /stopharvest"); }
else if(PlayerInfo[playerid][pJob] == 20) {
strcat( HelpString,"\n JOB : /smuggledrugs /sellcannabisto /sellcocainto"); }
else if(PlayerInfo[playerid][pJob] == 21) {
strcat( HelpString,"\n JOB : /startsweep /stopsweep"); }
else if(PlayerInfo[playerid][pJob] == 22) {
strcat( HelpString,"\n JOB : /smugglemats"); }
else if(PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19) {
strcat( HelpString,"\n TAXI : /fare"); }
if(IsACop(playerid))
{
strcat( HelpString,"\n MAI : /maihelp");
}
if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
strcat( HelpString,"\n MSI : /msihelp");
}
if (PlayerInfo[playerid][pAdmin] >= 1)
{
strcat( HelpString,"\n ADMIN : /a /ah /regulamentul");
}
strcat( HelpString,"\n AJUTOR : /bancahelp /canistra /bancomat /celularhelp /househelp /notehelp /vehiclehelp /renthelp /businesshelp /leaderhelp /fishhelp /maihelp /msihelp");
ShowPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, 19961, "{3333FF}Informatii player",HelpString,"exit", "");
}
return 1;
}
[img width=500 height=375]/imageshack/img15/7199/samp022go.png[/img]
Uploaded with ImageShack.us