#1

When i type this command and i type the text i want it is giving me the usage instad of showing the message



PHP код:
CMD:rm(playeridparams[])
{
    if(
pInfo[playerid][pRamcl] >= 1)
        return 
SendClientMessageplayerid0xFF0000FF"Command not found! Please try again, or use /cmds to view a list of working commands." );
    
    new 
text[128];
    if(
sscanf(params"s[128]",text))
        return 
SendClientMessage(playeridRED"/rm [text]");
        
    
format(textsizeof(text), "[RAMCREWMSG]:(%s){33CCFF}%s: %s"GetRamFromLevel(playerid), rName(playerid), text);
    
SendRamMessage(COLOR_LIGHTBLUEtext);
    return 
1;

Reply
#2

Try this

PHP код:
CMD:rm(playeridparams[])
{
    if(
pInfo[playerid][pRamcl] < 1)
        return 
SendClientMessageplayerid0xFF0000FF"Command not found! Please try again, or use /cmds to view a list of working commands." );
    
    new 
text[128];
    if(
sscanf(params"s[128]",text))
        return 
SendClientMessage(playeridRED"/rm [text]");
        
    
format(textsizeof(text), "[RAMCREWMSG]:(%s){33CCFF}%s: %s"GetRamFromLevel(playerid), rName(playerid), text);
    
SendRamMessage(COLOR_LIGHTBLUEtext);
    return 
1;

Reply
#3

not working
Reply
#4

PHP код:
CMD:rm(playeridparams[])
{
    if(
pInfo[playerid][pRamcl] >= 1)
        return 
SendClientMessageplayerid0xFF0000FF"Command not found! Please try again, or use /cmds to view a list of working commands." );
    
    new 
text[128];
    if(
sscanf(params"s",text))
        return 
SendClientMessage(playeridRED"/rm [text]");
        
    
format(textsizeof(text), "[RAMCREWMSG]:(%s){33CCFF}%s: %s"GetRamFromLevel(playerid), rName(playerid), text);
    
SendRamMessage(COLOR_LIGHTBLUEtext);
    return 
1;

if its still not working then you are failing with your sscanf plugin download latest one and re-compile your script with new sscanf plugin and include file.
Reply
#5

This one works thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)