Errors and warnings
#5

This

Obviously though, you missed a comma (,)

pawn Код:
CMD:pm(playerid, params[])
{
    new id, string[128], string2[128], sender[MAX_PLAYER_NAME], reciever[MAX_PLAYER_NAME], message1[128];
    if(sscanf(params, "us[75]", id, message1)) return SendClientMessage(playerid, 0xADFF2F, "Използване: /pm <id> <message>");
    GetPlayerName(playerid, sender, sizeof(sender));
    GetPlayerName(id, reciever, sizeof(reciever));
    format(string, sizeof(string), "%s: %s", sender, message1);
    format(string2, sizeof(string2), "%s: %s", reciever, message1);
    SendClientMessage(playerid, 0xADFF2F, string);
    SendClientMessage(id, 0xADFF2F, string2);
    return 1;
}
Reply


Messages In This Thread
Errors and warnings - by kaloqn54 - 10.02.2013, 03:43
Re: Errors and warnings - by rangerxxll - 10.02.2013, 03:47
Re: Errors and warnings - by kaloqn54 - 10.02.2013, 03:47
Re: Errors and warnings - by rangerxxll - 10.02.2013, 03:52
Re: Errors and warnings - by Neil. - 10.02.2013, 03:53
Re: Errors and warnings - by kaloqn54 - 10.02.2013, 03:55

Forum Jump:


Users browsing this thread: 1 Guest(s)