Da ne otvaram drugu temu pa cu te pitat ovde:
D:\Documents and Settings\Miki\Desktop\Roleplay\gamemodes\rp.pwn(17721) : error 032: array index out of bounds (variable "PlayerInfo")
D:\Documents and Settings\Miki\Desktop\Roleplay\gamemodes\rp.pwn(17721) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Miki\Desktop\Roleplay\gamemodes\rp.pwn(17724) : error 017: undefined symbol "playerid"
public OneSecondTimer() // In this case, we want to call this little timer, "OneSecondTimer"
{ // Start
for(new i = 0; i < MAX_PLAYERS; i++) // Basic loop to run this procedure on all players.
{ // Start
if(IsPlayerConnected(i)) // It verifies and confirms if the player is connected.
{ // Start
new Float: armor; // Armors are all float. We need this to be able to use the GetPlayerArmor.
new GetArmor = GetPlayerArmour(i, armor); // We want to make it a little shorter, so decided to name GetPlayerArmor with GetArmor to make it easier and faster to type.
if(GetArmor > 100 && PlayerInfo >= 1 || PlayerInfo >= 1)) // It checks if the player armor's is above 99, and he is not an RCON administrator, therefore, RCON administrators will not have themselves kicked for hacks.
{ // Start
new string, pname; // We define a string to be using for SendClientMessage() which means to send a message to a specific person,
GetPlayerName(playerid, pname, sizeof(pname)); // We use GetPlayerName() to get the player's name, self explanatory.
format(string, sizeof(string), "[LG Security] %s mozebi koristi Healt Hack proverete go!!", pname); // Here we attach a whole text to the string, you may change this as you want, %s refers to the player's name, as at the end, you can see "pname" which means the first %s you can find
ABroadCast(COLOR_YELLOW,string);
TBroadCast(COLOR_YELLOW,string);
} // Close
} // Close
} // Close
} // Close