SendClientMessage problem?
#1

When I use the following SendClientMessage code, that is normally in my Ladmin.pwn file. The All Admin Commands line shows up when i type /lcommands, and so does /level1 /level2 etc.
But the one that says ''player commands:" does not show up. Help me?

Код:
dcmd_lcommands(playerid,params[]) {
	#pragma unused params
	if(PlayerInfo[playerid][Level] > 0)
	{
		SendClientMessage(playerid,blue,"  ---= All Admin Commands =---");
		SendClientMessage(playerid,lightblue," /level1, /level2, /level3, /level4, /level5, /rcon ladmin");
		SendClientMessage(playerid,lightblue," Player Commands: /register, /login, /report, /stats, /time, /changepass, /resetstats, /getid, /jetpack /goto /vgoto /lgoto /ltele");
	}
	return 1;
}
Reply
#2

looks ok, are you sure that the .amx is saving in the proper area? I've done that a couple of times when I made a back up file of a .pwn lol
Reply
#3

pawn Код:
dcmd_lcommands(playerid,params[]) {
    #pragma unused params
    {
     SendClientMessage(playerid,blue,"  ---= All Admin Commands =---");
    SendClientMessage(playerid,lightblue," /level1, /level2, /level3, /level4, /level5, /rcon ladmin");
    SendClientMessage(playerid,lightblue," Player Commands: /register, /login, /report, /stats, /time, /changepass, /resetstats, /getid, /jetpack /goto /vgoto /lgoto /ltele");
    }
    return 1;
}
Reply
#4

Quote:
Originally Posted by TeddyBear
pawn Код:
dcmd_lcommands(playerid,params[]) {
    #pragma unused params
    {
    SendClientMessage(playerid,blue,"  ---= All Admin Commands =---");
    SendClientMessage(playerid,lightblue," /level1, /level2, /level3, /level4, /level5, /rcon ladmin");
    SendClientMessage(playerid,lightblue," Player Commands: /register, /login, /report, /stats, /time, /changepass, /resetstats, /getid, /jetpack /goto /vgoto /lgoto /ltele");
    }
    return 1;
}
you removed the conditional?
Reply
#5

Quote:
Originally Posted by SilentHuntR
Quote:
Originally Posted by TeddyBear
pawn Код:
dcmd_lcommands(playerid,params[]) {
    #pragma unused params
    {
    SendClientMessage(playerid,blue,"  ---= All Admin Commands =---");
    SendClientMessage(playerid,lightblue," /level1, /level2, /level3, /level4, /level5, /rcon ladmin");
    SendClientMessage(playerid,lightblue," Player Commands: /register, /login, /report, /stats, /time, /changepass, /resetstats, /getid, /jetpack /goto /vgoto /lgoto /ltele");
    }
    return 1;
}
you removed the conditional?
yes, Just see if it works, it works or me.
Reply
#6

if it is over 128 long it won't get displayed at all, split it up.
Reply
#7

it didn't work. its saving in the right area because if i would change something else it would still show up.

and Teddybears idea didn't do anything. still missing the player commands line :/
Reply
#8

Just make a new line
Reply
#9

what is this world coming too...
pawn Код:
dcmd_lcommands(playerid,params[]) {
    #pragma unused params
    if(PlayerInfo[playerid][Level] > 0)
    {
        SendClientMessage(playerid,blue,"  ---= All Admin Commands =---");
        SendClientMessage(playerid,lightblue," /level1, /level2, /level3, /level4, /level5, /rcon ladmin");
        SendClientMessage(playerid,lightblue," Player Commands: /register, /login, /report, /stats, /changepass");
             SendClientMessage(playerid, lightblue, " /time, /resetstats, /getid, /jetpack /goto /vgoto /lgoto /ltele");
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)