This cmd crashes pawno
#1

Hello,i've done this command:

pawn Код:
dcmd_rob(playerid,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);
    #pragma unused params
    }
    return 1;
}
The new;

pawn Код:
new robtime[MAX_PLAYERS];
But it crashes pawno when compling,wtf?
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: 1 Guest(s)