Custom function
#7

pawn Code:
COMMAND:help(playerid, params[])
{
        new message[128];
        if (!sscanf(params, "s[128]",message))
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof (name));
        format(message, sizeof(message), "%s asks: %s", name, message);
        HelpRequest(-1, message);
        return 1;
}
You must increase the string size first of all and also implement the size on sscanf "s" specifier.
Reply


Messages In This Thread
Custom function - by Lz - 15.12.2012, 13:58
Re: Custom function - by Djole1337 - 15.12.2012, 14:00
Re: Custom function - by Threshold - 15.12.2012, 14:01
Re: Custom function - by Mean - 15.12.2012, 14:02
Re: Custom function - by Lz - 15.12.2012, 14:19
Re: Custom function - by XStormiest - 15.12.2012, 14:33
Re: Custom function - by Lordzy - 15.12.2012, 14:38

Forum Jump:


Users browsing this thread: 4 Guest(s)