Fixes include [Help Needed]
#1

Hey Guys.. !!

I am using SATDM v11.5 by MoneyPimp and when i complied the script i got this warning

Код:
D:\SATDM v11 SA-MP 0.3e\pawno\include\fixes.inc(2482) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
I would be grateful to you if you guys could help me ..!!

Thanks, /
Pokiri
Reply
#2

It's just an identation problem, nothing much.

pawn Код:
public Callback(somevar,somestring[32])
{
    SomeFunction(somevar);
SomeAnotherFunction(somestring);
    return 1;
}
You see it is not lined out properly. This is better:

pawn Код:
public Callback(somevar,somestring[32])
{
    SomeFunction(somevar);
    SomeAnotherFunction(somestring);
    return 1;
}
Reply
#3

I didnt get you guyz ... Can you make it more clearer

Here is the pawn code where the problem is :

PHP код:
//=================================Phone stuff==================================
timer PhoneCut[1000]()
{
    for (new 
0GetMaxPlayers(); i++)
    {
        if (
Calling[i] > -&& Answered[i] == && Callerid[i] == 1)
        {
            if (
GetPlayerCash(i) >= CALL_UNIT_COST)
            {
                
GivePlayerCash(i, -CALL_UNIT_COST);
            }
            if (
GetPlayerCash(i) < CALL_UNIT_COST)
            {
                
Inter_SendClientMessage(iCOLOR_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(i4);
                
Calling[i] = -1;
                
Answered[i] = 0;
                
Callerid[i] = 0;
            }
        }
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)