A error.
#1

Код:
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.
Reply
#2

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))
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)