02.02.2014, 12:49
I Get The Following Warnings:
F:\Games 1\Gta San Andreas Multiplayer\gamemodes\LSGW2.pwn(895) : warning 217: loose indentation
F:\Games 1\Gta San Andreas Multiplayer\gamemodes\LSGW2.pwn(918 ) : warning 217: loose indentation
F:\Games 1\Gta San Andreas Multiplayer\gamemodes\LSGW2.pwn(933) : warning 217: loose indentation
F:\Games 1\Gta San Andreas Multiplayer\gamemodes\LSGW2.pwn(935) : warning 217: loose indentation
In This:
Please I Need Help In This.
F:\Games 1\Gta San Andreas Multiplayer\gamemodes\LSGW2.pwn(895) : warning 217: loose indentation
F:\Games 1\Gta San Andreas Multiplayer\gamemodes\LSGW2.pwn(918 ) : warning 217: loose indentation
F:\Games 1\Gta San Andreas Multiplayer\gamemodes\LSGW2.pwn(933) : warning 217: loose indentation
F:\Games 1\Gta San Andreas Multiplayer\gamemodes\LSGW2.pwn(935) : warning 217: loose indentation
In This:
Код:
if(!strcmp("/duty", cmdtext, true)) { // if the player isnt logged into rcon , it will send the below message (change it to your desire) if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"Invalid Command. Type /commands For A List Of Commands."); new OnDuty[MAX_PLAYERS]; new admin_name[MAX_PLAYER_NAME], Message[128]; if(OnDuty[playerid] == 0) { GameTextForPlayer(playerid, "~w~ On Duty", 5000, 5); SetPlayerSkin(playerid,217); // set your desired skin here format(Message, sizeof(Message), "%s (%d) Is An Admin On Duty,Attacking Him Will Lead To Punishment!", admin_name, playerid), SendClientMessageToAll(0xFF9900AA, Message); SetPlayerHealth(playerid,100000); SetPlayerTeamColor(playerid); GivePlayerWeapon(playerid,38,133337); OnDuty[playerid] = 1; } else { GameTextForPlayer(playerid, "~r~ Off Duty", 5000, 5); SetPlayerSkin(playerid,217); // set your desired skin here format(Message, sizeof(Message), "%s (%d) Is An Admin Off Duty.", admin_name, playerid), SendClientMessageToAll(0xFF9900AA, Message); SetPlayerHealth(playerid,100); SetPlayerTeamColor(playerid); ResetPlayerWeapons(playerid); OnDuty[playerid] = 0; } return 1; } return 0; }