SA-MP Forums Archive
/ahelp Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /ahelp Problem (/showthread.php?tid=392995)



/ahelp Problem - Blackazur - 16.11.2012

Код:
COMMAND:ahelp(playerid,params[])
{
    if(PlayerAdmin[playerid] == 0) return SendClientMessage(playerid,COLOR_RED,"You can not use this Command!");

    SendClientMessage(playerid,COLOR_LIGHTGREEN,"Admin-Commands");
    SendClientMessage(playerid,COLOR_HAUT,"1: /whisper, /changename, /cchat, /cnn, /admin, /setweather, /settime, /mute, /unmute, /spec ,/specoff, /kick, /freeze, /unfreeze, /slap, /mute, /unmute");
    SendClientMessage(playerid,COLOR_YELLOW,"*2: /kick,/warn, /akill, /ban, /slap, /freeze, /unfreeze, /spawn, /mute, /unmute");
    SendClientMessage(playerid,COLOR_PINK,"*3: /freeze, /unfreeze, /maptime, /explode, /dchat, /mathevent, /stopmathevent, /goto, /gethere /spawn, /spec, /unbanip");
    SendClientMessage(playerid,COLOR_ORANGE,"*4: /money /gmx, /makeadmin, /givescore, /removescore, /rangeban, /heli, /car");
    SendClientMessage(playerid,COLOR_LIGHTGREEN,"|____________________________________|");
	return 1;
}
The Problem is that the Line for Admin Level 1 are not screened, when an Admin type /ahelp. Know everyone an Answer?


Re: /ahelp Problem - Abreezy - 16.11.2012

Try splitting it up to another line, might be too long.


Re: /ahelp Problem - CrossUSAAF - 16.11.2012

Код:
SendClientMessage(playerid,COLOR_HAUT,"*1: /whisper, /changename, /cchat, /cnn, /admin, /setweather, /settime, /mute, /unmute, /spec ,/specoff, /kick, /freeze, /unfreeze, /slap, /mute, /unmute");
I'm not 100 % what you meant, but did you used "*" without quotes, before number one (1)?


AW: /ahelp Problem - Blackazur - 16.11.2012

Yes i use it just like that also the "*".


Re: /ahelp Problem - CrossUSAAF - 16.11.2012

I Had similar problem with one long text. Have you tried to put some text to second line, because the line looks like long.


AW: Re: /ahelp Problem - Blackazur - 16.11.2012

Quote:
Originally Posted by CrossUSAAF
Посмотреть сообщение
I Had similar problem with one long text. Have you tried to put some text to second line, because the line looks like long.
Yes, i try it now to put it on second Line, and it works.


Re: /ahelp Problem - Konstantinos - 16.11.2012

In case you want to "cut" some parts, because the line is too long, you can use this way or strcat.
pawn Код:
// --
    SendClientMessage( playerid, -1, "Imagine this line as a big one! \
                                    blabla.. \
                                    blabla.. \
                                    blabla.. \
                                    blabla.."
);



Re: /ahelp Problem - Roddan - 16.11.2012

Add
PHP код:
string[258
it should fix it.


Re: /ahelp Problem - Toreno - 16.11.2012

I suggest you to read Abreezy's post as it seems the correct answer. Your first line's length is 152, and if I'm not mistaken, the limit is 128. Even though I think it should appear anyway, yet half. Try splitting.

EDIT: I gotta be faster.