Problem with params sscanf2
#2

pawn Код:
CMD:drift(playerid, params[])
{
    new place;
    if(sscanf(params, "d", place)) return SendClientMessage(playerid, -1, "Usage: /drift <drift place> (1-53)");
    if(place < 1 || place > 53) return SendClientMessage(playerid, COLOR_YELLOW, "ERROR: Invalid Drift place. It can be only from 1 to 53!");
    PlayerGoesDrift(playerid, DriftCoords[place-1][0], DriftCoords[place)-1][1], DriftCoords[place-1][2], DriftCoords[place-1][3], DriftCoords[place-1][4]);
    return 1;
}
Reply


Messages In This Thread
Problem with params sscanf2 - by sMog. - 25.04.2011, 00:29
Re: Problem with params sscanf2 - by austin070 - 25.04.2011, 00:39
Re: Problem with params sscanf2 - by sMog. - 25.04.2011, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)