String
#1

Hello.

I have made two commands but i can just type like 5-10 words in them is it becuase string[56]?

PHP код:
CMD:adm(playeridparams[])
{
    if(
pInfo[playerid][pAdmin] < 1) return 0;
    new 
sendername[MAX_PLAYER_NAME], string[56];
    
GetPlayerName(playeridsendernamesizeof(sendername));
    if(
isnull(params)) return SendClientMessage(playerid0xFFFFFFF,"Syntax error.Correct usage: /adm [text]");
    
format(stringsizeof(string), "((Server Action: %s %s ))"sendernameparams);
    
SendClientMessageToAll(0xFF0000C8string);
    return 
1;
}
CMD:ooc(playeridparams[])
{
    new 
sendername[MAX_PLAYER_NAME], string[56];
    
GetPlayerName(playeridsendernamesizeof(sendername));
    if(
isnull(params)) return SendClientMessage(playerid0xFFFFFFF,"Syntax error.Correct usage: /ooc [text]");
    
format(stringsizeof(string), "(( %s: %s ))"sendernameparams);
    
SendClientMessageToAll(0xffcc00FFstring);
    return 
1;

Reply


Messages In This Thread
String - by Roddan - 12.08.2012, 19:54
Re: String - by TaLhA XIV - 12.08.2012, 19:57
Re: String - by mrsamp - 12.08.2012, 20:20
Re: String - by Babul - 12.08.2012, 20:35

Forum Jump:


Users browsing this thread: 1 Guest(s)