[POMOC]Oko Warning-a

Započeo TRAXX, Februar 01, 2017, 22:17:53 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skriptu koju koristim: editam neki mod
Detaljan opis problema : imam warning i nzm kako da ga resim
[pawn]PlayerTextDrawShow(plazerid, Reg[9][playerid], 91);[/pawn]
a warning je : ,,warning 202: number of arguments does not match definition
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
  
TRAXX
SAMP Professional Scripter
                  FB: https://www.facebook.com/traxxscript



PlayerTextDrawShow(playerid, Reg[9][playerid]);

Hvala ti,moze lock
  
TRAXX
SAMP Professional Scripter
                  FB: https://www.facebook.com/traxxscript


isto takav warnig evo
[pawn]INFO(playerid,"Dali ste %s dozvolu za oruzje.", GetName(id));[/pawn]
  
TRAXX
SAMP Professional Scripter
                  FB: https://www.facebook.com/traxxscript


Posalji definiciju INFO ili tu funkciju ako je u funkciji. 😊

Probaj ovako

INFO(playerid,-1,"Dali ste %s dozvolu za oruzje.", GetName(id));

A mozda ti INFO ne podrzava format pa ako ne bude radilo posalji definiciju

[pawn]#define INFO(%0, %1) \
         SendClientMessage(%0, -1, "{2e9cd1} || BE:RP || - {FFFFFF}"%1)[/pawn]
Inace funkciju sam uzeo sa sm moda
  
TRAXX
SAMP Professional Scripter
                  FB: https://www.facebook.com/traxxscript



#define INFO(%0, %1) \
         SendClientMessageEx(%0, -1, "{2e9cd1} || BE:RP || - {FFFFFF}"%1)//stavi ovako




stock SendClientMessageEx(playerid, color, const str[], {Float,_}:...) {//stock za   SendClientMessageEx
static
    args,
    start,
    end,
    string[144]
;
#emit LOAD.S.pri 8
#emit STOR.pri args

if(args > 12)
{
#emit ADDR.pri str
#emit STOR.pri start

    for (end = start + (args - 12); end > start; end -= 4)
{
        #emit LREF.pri end
        #emit PUSH.pri
}
#emit PUSH.S str
#emit PUSH.C 144
#emit PUSH.C string
#emit PUSH.C args
#emit SYSREQ.C format

SendClientMessage(playerid, color, string);

#emit LCTRL 5
#emit SCTRL 4
#emit RETN
}
return SendClientMessage(playerid, color, str);
}




imam erora
  
TRAXX
SAMP Professional Scripter
                  FB: https://www.facebook.com/traxxscript


error 003: declaration of a local variable must appear in a compound block
to je za     static
error 010: invalid function or declaration
a ovo je za stock

error 017: undefined symbol "args"
  
TRAXX
SAMP Professional Scripter
                  FB: https://www.facebook.com/traxxscript


sredio
  
TRAXX
SAMP Professional Scripter
                  FB: https://www.facebook.com/traxxscript


Hvala ti brate sredio sam sve  :)
  
TRAXX
SAMP Professional Scripter
                  FB: https://www.facebook.com/traxxscript