Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Pawno Waring

$
0
0
I get this :

Quote:

C:\Users\HP\Desktop\Server2\pawno\include\fixes.in c(2482) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
When I compile this :

Code:

//=================================Phone stuff==================================
timer PhoneCut[1000]()
{
        for (new i = 0; i < GetMaxPlayers(); i++)
        {
                if (Calling[i] > -1 && Answered[i] == 1 && Callerid[i] == 1)
                {
                        if (GetPlayerCash(i) >= CALL_UNIT_COST)  // (2482)
                        {
                                GivePlayerCash(i, -CALL_UNIT_COST);
                        }
                        if (GetPlayerCash(i) < CALL_UNIT_COST)
                        {
                                Inter_SendClientMessage(i, COLOR_BRIGHTRED, "CUT OFF: You don't have enough cash to continue this call");
                                Inter_SendClientMessage(Calling[i], COLOR_BRIGHTRED, "CUT OFF: Your recipient's phone has been cut off due to lack of credit");
                                SetPlayerSpecialAction(Calling[i],SPECIAL_ACTION_STOPUSECELLPHONE);
                                RemovePlayerAttachedObject(Calling[i], 4);
                                Calling[Calling[i]] = -1;
                                Answered[Calling[i]] = 0;
                                SetPlayerSpecialAction(i,SPECIAL_ACTION_STOPUSECELLPHONE);
                                RemovePlayerAttachedObject(i, 4);
                                Calling[i] = -1;
                                Answered[i] = 0;
                                Callerid[i] = 0;
                        }
                }
        }
        return 1;
}

Can anyone help?
Thank you.

Viewing all articles
Browse latest Browse all 18226

Trending Articles