This cmd crashes pawno
#4

pawn Код:
dcmd_rob(playerid,params[])
{
    #pragma unused params
    if((GetTickCount() - robtime[MAX_PLAYERS]) < 120000)) return SendClientMessage(playerid,color,"You have to wait.");
    if(IsPlayerInRangeOfPoint(playerid, RANGE, COORDINATES))
    {
    new string[120], playerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
    robtime[MAX_PLAYERS] = GetTickCount();
    format(string, sizeof(string), "%s Is Robbing .....etc", playerName);
    SendClientMessageToAll(0xFFFFFFFF, string);
    SetPlayerWantedLevel(playerid, 6);
    GivePlayerMoney(playerid, 10000);
    }
    return 1;
}

#pragma unused params NEVER EVER EVER EVER goes beneath dcmd.... EVER!
Reply


Messages In This Thread
This cmd crashes pawno - by Face9000 - 03.01.2012, 20:32
Re: This cmd crashes pawno - by Stigg - 03.01.2012, 20:34
Re: This cmd crashes pawno - by geerdinho8 - 03.01.2012, 21:38
Re: This cmd crashes pawno - by fiki574 - 03.01.2012, 21:55
Re: This cmd crashes pawno - by Babul - 03.01.2012, 22:47

Forum Jump:


Users browsing this thread: 3 Guest(s)