SERVER: Unknown Command
#2

pawn Код:
CMD:checkweed(playerid, params[])
{
    new success = 0;
    for(new i = 0; i <= MAX_WEEDS; i++) {
        if(IsPlayerInRangeOfPoint(playerid, 2.5, weedVariables[i][wPos][0], weedVariables[i][wPos][1], weedVariables[i][wPos][2])) {
           
            success = 1;
            return 1; //-Maybe?
        }
    }
    if(success == 0)
        return SendClientMessage(playerid, COLOR_LIGHTRED, "You are not near any fully grown weed plant!");
    return 1;
}
Reply


Messages In This Thread
SERVER: Unknown Command - by Dodo9655 - 28.07.2012, 12:47
Re: SERVER: Unknown Command - by Ld Est Ld - 28.07.2012, 13:00

Forum Jump:


Users browsing this thread: 2 Guest(s)