SA-MP Forums Archive
A error. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A error. (/showthread.php?tid=101895)



A error. - Sal_Kings - 12.10.2009

Код:
if(!strcmp(cmdtext,"/Buybeer",true))

 GivePlayerMoney(playerid,-50); // It says loose indentation here.
 SendClientMessage(playerid,COLOR_GREEN,"There are ??? beers left in the beer company stock! ");
 BEER[playerid] += 1;
 return 1;


 
}
There error is on the like "GivePlayermoney".

Код:
C:\Documents and Settings\home\My Documents\KingsRPG.pwn(217) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.



Re: A error. - krisko_g1 - 12.10.2009

Quote:

if(!strcmp(cmdtext,"/Buybeer",true))

GivePlayerMoney(playerid,-50); // It says loose indentation here.
SendClientMessage(playerid,COLOR_GREEN,"There are beers left in the beer company stock! ");
BEER[playerid] += 1;
return 1;
}

this is the right code i think becouse of this ir lose identation

((and sorry for my bad english))


Re: A error. - (.Aztec); - 12.10.2009

pawn Код:
if(!strcmp(cmdtext,"/Buybeer",true))
{
    GivePlayerMoney(playerid,-50); // It says loose indentation here.
    SendClientMessage(playerid,COLOR_GREEN,"There are ??? beers left in the beer company stock! ");
    BEER[playerid] += 1;
    return 1;
}