[POMOC] afk errori

Započeo [BU-RP] Pajke
7. Jun 2014. Zaključano
242
pregleda
5
postova
Anonymous1111
4
Shot Caller
7. Jun 2014.
Skripta koju koristim:GF
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):
James_SmithXDl
6
OG Legend
7. Jun 2014.
shadows a variable at a preceding level == varijable je vec negde definisana i ti si je ponovo definiso moguce da je globalno pozvana a moguce da je u pozivu.

symbol already defined znaci da skripta vec prepoznaje isti poziv...

undefined symbol simbol se koristi ali ga pawno nemoze prepoznati kao definisanu varijablu
Anonymous1111
4
Shot Caller
7. Jun 2014.
pa sta sad ja tu da uradim :O ?
James_SmithXDl
6
OG Legend
7. Jun 2014.
jesam ja tebi objasnio sta znaci sta?
jesam sad lepo resis...

definiraj string u afk pozivu....

proveri sta ti stvara ovaj problem

symbol already defined: "SSCANF_OnPlayerConnect"
Anonymous1111
4
Shot Caller
7. Jun 2014.
ne kontam ja ovdje nista, obrisacu ja ovo i to je to ..

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha