Really Really Really Need Help!
#1

Hi.

I need help with something.

if someone type an wrong command, i want that the server says:

I Don't Know The Command [/Command]. Please Use /Help [Playername]

Plz Commend.

[XSP]oOPaulOo
Reply
#2

wow that's crazy command. You must do that.

Add this end of OnPlayerCommandText

Код:
else
	{
		format(string, sizeof(string), "%s is not an available command. Check the command list to view the all the current commands. ( /commands )", cmdtext);
		SendClientMessage(playerid, RED, string);
	}
return 0;
}
Reply
#3

You should return SendClientMessage(playerid, RED, string);
Reply
#4

no man that's worked
Reply
#5

Quote:
Originally Posted by ByFukara
wow that's crazy command. You must do that.

Add this end of OnPlayerCommandText

Код:
else
	{
		format(string, sizeof(string), "%s is not an available command. Check the command list to view the all the current commands. ( /commands )", cmdtext);
		SendClientMessage(playerid, RED, string);
	}
return 0;
}
It Won't work.
can u also add the :

new
forwards or something
it gives an error unknown symbol string
Reply
#6

pawn Код:
new string[128];
Reply
#7

Quote:
Originally Posted by Don Correlli
pawn Код:
new string[128];
THX
Reply
#8

I already got it!

Really Thxs For commend.

i have a screenie that it works :P

command an name:P
Reply
#9

I see you've removed that screenshot... Good, because it had cheats in it.
Reply
#10

Quote:
Originally Posted by Weirdosport
I see you've removed that screenshot... Good, because it had cheats in it.
I Only use it for playerpos.

not for hacking.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)