Jump to content
  • 0

2 warninguri si 2 erori


laury

Question

C:\Documents and Settings\Administrator\Desktop\BlodZ's RolePlay\pawno\include\JunkBuster.inc(2003) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Documents and Settings\Administrator\Desktop\BlodZ's RolePlay\gamemodes\......pwn(10643) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\Administrator\Desktop\BlodZ's RolePlay\gamemodes\......pwn(10658) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrator\Desktop\BlodZ's RolePlay\gamemodes\......pwn(13492) : warning 219: local variable "mod" shadows a variable at a preceding level
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
va rog ajutatima si pe mn cu problema asta.ast cit mai rapid
liniile 10642-10659

strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }

    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}

dak mai tr fro linie pusa imi spuneti si o pun imd

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

1. C:\Documents and Settings\Administrator\Desktop\BlodZ's RolePlay\gamemodes\......pwn(10643) : error 021: symbol already defined: "strtok"

Sterge tot

strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }

    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}

2. C:\Documents and Settings\Administrator\Desktop\BlodZ's RolePlay\gamemodes\......pwn(13492) : warning 219: local variable "mod" shadows a variable at a preceding level

Mai este o data definit "mod"

i0418xcttya707ofg.jpg

Link to comment
Share on other sites

scz iar de dublu post.dak am incurcat cu ceva cu aceste duble posturi rog un administrator sa imi dea warn sau ban ce considera el

va rog ajutatima si pe mn k din cauza la alea 2 warninguri nu merg unele comenzi de pe sv

help pls

Link to comment
Share on other sites

scz iar de dublu post.dak am incurcat cu ceva cu aceste duble posturi rog un administrator sa imi dea warn sau ban ce considera el

va rog ajutatima si pe mn k din cauza la alea 2 warninguri nu merg unele comenzi de pe sv

help pls

Frate si eu am avut BlodZ dar este plin de buguri o sa te convingi pe parcurs ;)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By GamerulFOX
      Salut ! Cine ma poate ajuta cu erorile astea ? am folosit acest tutorial 

    • By BaDB0y95
      Am si eu aceste erori si se da crash pe server 
       
      [12:02:08] [debug] Run time error 4: "Array index out of bounds"
      [12:02:08] [debug]  Accessing element at negative index -1
      [12:02:08] [debug] AMX backtrace:
      [12:02:08] [debug] #0 001bf4f4 in public OnPlayerKeyStateChange (0, 65536, 0) from gamemode.amx
      [12:02:12] [debug] Run time error 4: "Array index out of bounds"
      [12:02:12] [debug]  Accessing element at negative index -1
      [12:02:12] [debug] AMX backtrace:
       
    • By Cosminel
      Salut, de ceva timp ma confrunt cu niste warninguri prin server_log.txt, mai exact legate de acel include mSelection.
      [17:28:06] -mSelection- WARNING: Failed to load list: "skins.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "skins.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "bycikles.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "bikes.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "trucks.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "boats.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "hely.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "planes.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "rcs.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Cars0.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Cars1.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Cars2.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Cars3.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Cars4.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Cars5.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Cars6.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Cars7.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Cars8.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Cars9.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Cars10.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Cars11.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Weapons.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Weapons.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Weapons.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Weapons.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Weapons.txt" [17:28:06] -mSelection- WARNING: Failed to load list: "Weapons.txt" Am incercat sa fac doua fisiere .txt, unul skins.txt si altul Weapons.txt, am bagat totate id-urile in ordine, exact cum a spus si baiatul de aici, dar tot imi apar acele erori.
      Am incercat si treaba cu inlocuitul include-ului mSelection.inc, si la fel apar warningurile.
      Daca ati putea va rog frumos sa ma ajutati, ar fii super. Va multumesc frumos pentru timpul acordat citirii topicului meu!
    • By Alexandru Mihalescu
      Primesc eroriile aste dintr-un fisier YSI, am intrat in fisierul ala si nu stiu exact ce sa ii fac...

    • By SMARDEX
      ..\YSI_Coding\y_unique\y_unique_entry.inc(134) : error 001: expected token: ";", but found "static"
      C:\Users\alexs\OneDrive\Desktop\hyper\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_amx_impl.inc(434) : error 033: array must be indexed (variable "pattern")
      C:\Users\alexs\OneDrive\Desktop\hyper\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_amx_impl.inc(434) : error 029: invalid expression, assumed zero
      C:\Users\alexs\OneDrive\Desktop\hyper\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_amx_impl.inc(434) : error 029: invalid expression, assumed zero
      C:\Users\alexs\OneDrive\Desktop\hyper\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_amx_impl.inc(434) : fatal error 107: too many error messages on one line
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.