Fixes include [Help Needed] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Fixes include [Help Needed] (
/showthread.php?tid=359508)
Fixes include [Help Needed] -
Pokiri_Boii - 14.07.2012
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
Re: Fixes include [Help Needed] -
Jochemd - 14.07.2012
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;
}
Re: Fixes include [Help Needed] -
Pokiri_Boii - 14.07.2012
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 i = 0; i < GetMaxPlayers(); i++)
{
if (Calling[i] > -1 && Answered[i] == 1 && Callerid[i] == 1)
{
if (GetPlayerCash(i) >= CALL_UNIT_COST)
{
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;
}