12.03.2010, 21:26
I got 2 warning if a add this command...
C:\Documents and Settings\Daniel\Desktop\GTA\Server\gamemodes\sftdm .pwn(563) : warning 217: loose indentation
C:\Documents and Settings\Daniel\Desktop\GTA\Server\gamemodes\sftdm .pwn(576) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
Line 563 its if(strcmp(cmd, "/test2", true) == 0)
Line 576 its return 0;
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[256]; if(strcmp(cmd, "/test", true) == 0) { if(gTeam[playerid] == TEAM_ARMY) { SendPlayerFormattedText(playerid,"You are in army.",0); } else { SendPlayerFormattedText(playerid,"You are not in the army",0); } return 1; } if(strcmp(cmd, "/test2", true) == 0) { if(gTeam[playerid] == TEAM_TALIBAN) { SendPlayerFormattedText(playerid,"You are a Taliban.",0); } else { SendPlayerFormattedText(playerid,"You are not a Taliban",0); } return 1; } return 0; }
C:\Documents and Settings\Daniel\Desktop\GTA\Server\gamemodes\sftdm .pwn(576) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
Line 563 its if(strcmp(cmd, "/test2", true) == 0)
Line 576 its return 0;