Detaljan opis problema:Ubacio sam ovu afk skriptu http://forum.sa-mp.com/showthread.php?t=479616
i sad mi izbacuje ove errore ..
C:\BE\gamemodes\BE.pwn(11544) : error 021: symbol already defined: "SSCANF_OnPlayerConnect"
C:\BE\gamemodes\BE.pwn(11584) : warning 202: number of arguments does not match definition
C:\BE\gamemodes\BE.pwn(22467) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\BE\gamemodes\BE.pwn(42142) : warning 219: local variable "Speed" shadows a variable at a preceding level
C:\BE\gamemodes\BE.pwn(42148) : warning 219: local variable "Speed" shadows a variable at a preceding level
C:\BE\gamemodes\BE.pwn(42773) : warning 213: tag mismatch
C:\BE\gamemodes\BE.pwn(43169) : error 017: undefined symbol "string"
C:\BE\gamemodes\BE.pwn(43169) : error 017: undefined symbol "string"
C:\BE\gamemodes\BE.pwn(43169) : error 029: invalid expression, assumed zero
C:\BE\gamemodes\BE.pwn(43169) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Dio skripte:
//////////////////////////////////////////////////////////////////////////////////////
forward AFKCheck();
public AFKCheck()
{
new Float:Pos; // creating an array variable of 3 values whose datatype is Float.
for(new i = 0; i < MAX_PLAYERS; i++) // Looping through the players.
{
GetPlayerPos(i,Pos,Pos,Pos); // Gets the player position and saves into their variables.
if(IsPlayerInRangeOfPoint(i,2,Pos,Pos,Pos)) // If player is around the position (if player is at the same place)
{
AFK++; // Increment the AFK variable (for every second if player is at same location, increase the AFK variable by 1)
}
if(AFK == 3) // If it has been a minute for the player being at the same place
{
AFK = 0; // Reset the afk variable
format(string,sizeof(string),"%s has been auto-kicked for inactivity.",pName(i));
SendClientMessageToAll(COLOR_WHITE,string);
Kick(playerid); //Kick the player.
}
}
return 1;
}
/////////////////////////////////////////////////////////////////////////////////////////Neke slike/video za lakse dobivanje pomoci(neobavezno):
