[Pomoc] Error

Započeo David003
25. Jan. 2013. Zaključano
423
pregleda
7
postova
David003
5
Underboss
25. Jan. 2013.
Skripta koju koristim: Moja (u obliku GF-a)
Opis probelma: Napravio sam si lose rijeci tj od tuta sam stavio al mi izbacuje ove errore
C:\Users\David\Desktop\Balkan Integral RolePlay\gamemodes\BIRP.pwn(61044) : error 035: argument type mismatch (argument 1)
C:\Users\David\Desktop\Balkan Integral RolePlay\gamemodes\BIRP.pwn(69233) : error 010: invalid function or declaration
C:\Users\David\Desktop\Balkan Integral RolePlay\gamemodes\BIRP.pwn(69235) : warning 218: old style prototypes used with optional semicolumns
C:\Users\David\Desktop\Balkan Integral RolePlay\gamemodes\BIRP.pwn(69236) : error 054: unmatched closing brace ("}")
C:\Users\David\Desktop\Balkan Integral RolePlay\gamemodes\BIRP.pwn(69237) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

4 Errors.


Dio skripte: Ovdje mi izbacuje errore
    new LoseRijeci[][] =
    {
    {"test"},
    {"test"},
    {"test"}
    };
    for(new i; i != sizeof(LoseRijeci); ++i)
    {
    AntiPsovka(text, LoseRijeci);
    }


Slika/Video: //
[EX:RP]N1XTON
5
Underboss
25. Jan. 2013.
    new LoseRijeci[][] =
    {
    {"test"},
    {"test"},
    {"test"}
    }
    for(new i; i != sizeof(LoseRijeci); ++i)
    {
    AntiPsovka(text, LoseRijeci);
    }
David003
5
Underboss
25. Jan. 2013.
N1XTON wrote on January 25, 2013, 9:55 am:
    new LoseRijeci[][] =
    {
    {"test"},
    {"test"},
    {"test"}
    }
    for(new i; i != sizeof(LoseRijeci); ++i)
    {
    AntiPsovka(text, LoseRijeci);
    }


Dolazi mi ovaj error
C:\Users\David\Desktop\Balkan Integral RolePlay\gamemodes\BIRP.pwn(61044) : error 035: argument type mismatch (argument 1)


na ovoj liniji
AntiPsovka(text, LoseRijeci);


zatim ovi errori na ovim linijama
for(new i; i != sizeof(LoseRijeci); ++i)
{
AntiPsovka(text, LoseRijeci);
}
stock AntiPsovka(string[], LoseRijeci[], zamjeni = '*')
{
    new
        i
    ;
    while((i = strfind(string, LoseRijeci, true)) != -1)
    {
        for(new x = (i + strlen(LoseRijeci)); i != x; ++i)
        {
            string = zamjeni;
        }
    }
    return 1;
}


errori
C:\Users\David\Desktop\Balkan Integral RolePlay\gamemodes\BIRP.pwn(69233) : error 010: invalid function or declaration
C:\Users\David\Desktop\Balkan Integral RolePlay\gamemodes\BIRP.pwn(69235) : warning 218: old style prototypes used with optional semicolumns
C:\Users\David\Desktop\Balkan Integral RolePlay\gamemodes\BIRP.pwn(69236) : error 054: unmatched closing brace ("}")
C:\Users\David\Desktop\Balkan Integral RolePlay\gamemodes\BIRP.pwn(69237) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

4 Errors.
David003
5
Underboss
25. Jan. 2013.
Vegas. wrote on January 25, 2013, 10:05 am:
Probaj.
stock AntiPsovka(string[], LoseRijeci[])
{
    new
        i
    ;
    while((i = strfind(string, LoseRijeci, true)) != -1)
    {
        for(new x = (i + strlen(LoseRijeci)); i != x; ++i)
        {
            string = *;
        }
    }
    return 1;
}


sad na ovim linijama dobijem ove errore
C:\Users\David\Desktop\Balkan Integral RolePlay\gamemodes\BIRP.pwn(69233) : error 010: invalid function or declaration
C:\Users\David\Desktop\Balkan Integral RolePlay\gamemodes\BIRP.pwn(69235) : warning 218: old style prototypes used with optional semicolumns
C:\Users\David\Desktop\Balkan Integral RolePlay\gamemodes\BIRP.pwn(69236) : error 054: unmatched closing brace ("}")
C:\Users\David\Desktop\Balkan Integral RolePlay\gamemodes\BIRP.pwn(69237) : error 025: function heading differs from prototype
C:\Users\David\Desktop\Balkan Integral RolePlay\gamemodes\BIRP.pwn(69246) : error 029: invalid expression, assumed zero
Blaeks_Biofor
5
Forum Don
25. Jan. 2013.
new ZabranjeneReci[][] = {
"rec", "rec", "rec", "rec"
};
i stavis proveru u chatu
for(new i; i < sizeof(ZabranjeneReci); i++)
{
if(strfind(result, ZabranjeneReci, true) != -1)
{
new strMy;
format(strMy, sizeof(strMy), "igras sa Idem %d, koji se zove %s, kaze %s",playerid,sendername,result);
SCMTA(-1, strMy, 1);
}
}
Stefan Lepotic
4
Enforcer
25. Jan. 2013.
Vegas. wrote on January 25, 2013, 10:05 am:
Probaj.
stock AntiPsovka(string[], LoseRijeci[])
{
    new
        i
    ;
    while((i = strfind(string, LoseRijeci, true)) != -1)
    {
        for(new x = (i + strlen(LoseRijeci)); i != x; ++i)
        {
            string = *;
        }
    }
    return 1;
}

String nije ceo broj. Ne mozes staviti znak tako na string.
Probaj ovako taj stock...
stock AntiPsovka(string[], LoseRijeci[])
{
    new
        i
    ;
    while((i = strfind(string, LoseRijeci, true)) != -1)
    {
        for(new x = (i + strlen(LoseRijeci)); i != x; ++i)
        {
            string = '*';
        }
    }
    return 1;
}


EDIT:
Za ostale errore obelezi linije ili uradi ono sto je Bleaks rekao
David003
5
Underboss
25. Jan. 2013.
David (Sabljak) A.k.A SABO(T) wrote on January 25, 2013, 10:36 am:
Neznam di ti je problem meni sve normalno radi XD
public OnPlayerText(playerid, text[])
{
new LoseRijeci[][] = {
{"majka"},
{"keva"},
{"mama"},
{"tata"}
};
for(new i; i != sizeof(LoseRijeci); ++i)
{
AntiPsovka(text, LoseRijeci);
}
return 1;
}
stock AntiPsovka(string[], LoseRijeci[], zamjeni = '*')
{
new i;
while((i = strfind(string, LoseRijeci, true)) != -1)
{
for(new x = (i + strlen(LoseRijeci)); i != x; ++i)
{
string = zamjeni;
}
}
return 1;
}


E hvala ti sad radi,vjerojatno si u tutu nest krivo stavio al ugl ovdje ti je sve ok sad
Lock

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha