Error prototype

Započeo BloOm3R!, Jun 05, 2010, 16:42:33 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Meni ovakav error sta bi to moglo bit
Citat
C:\Users\Administrator\Desktop\nezanima vas\statebriga.pwn(898) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Kako da se ovog rjesim pls pomoc

Redak iznad,taj i ispod postaj ;)

daj ljepo objasni koji je error i koji je red sta je to uopce

C:\Users\Administrator\Desktop\nezanima vas\statebriga.pwn(898) : error 025: function heading differs from prototype


Red - 897
        898
        899

Eto ti sva 3 reda
Citat}
public OnVehicleRespray(vehicleid, color1, color2)
{
sta nije uredu

Citat: Bloomer poslato Jun 05, 2010, 17:10:15 POSLE PODNE
Eto ti sva 3 reda
Citat}
public OnVehicleRespray(vehicleid, color1, color2)
{
sta nije uredu

Citat}
public OnVehicleRespray(vehicleid, color1, color2)
return 1;
{

Ili obrisi...
Aequam memento rebus in arduis servare mentem.

jao luksa koji si ti idiot, rijesenje je sljedece:

public OnVehicleRespray(playerid, vehicleid, color1, color2)

znaci zamijeni ovo svoje ovime, tj. nedostajao ti je argument: playerid

Cccc... Nisam vidio ...
Aequam memento rebus in arduis servare mentem.

nesto sam fix ali sad mi je ovo valjda fali neki include ili sta  :'( :'( pls pomoc
CitatC:\Users\Administrator\Desktop\HAHA\filterscript\lol.pwn(14) : error 017: undefined symbol "ret_memcpy"
C:\Users\Administrator\Desktop\HAHA\filterscript\lol.pwn(156) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Users\Administrator\Desktop\HAHA\filterscript\lol.pwn(168) : error 017: undefined symbol "strtok"
C:\Users\Administrator\Desktop\HAHA\filterscript\lol.pwn(168) : error 033: array must be indexed (variable "cmd")
C:\Users\Administrator\Desktop\HAHA\filterscript\lol.pwn(174) : error 017: undefined symbol "strtok"
C:\Users\Administrator\Desktop\HAHA\filterscript\lol.pwn(174) : error 033: array must be indexed (variable "tmp")
C:\Users\Administrator\Desktop\HAHA\filterscript\lol.pwn(163) : warning 203: symbol is never used: "idx"
C:\Users\Administrator\Desktop\HAHA\filterscript\lol.pwn(163 -- 372) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange")
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

#pragma unused ret_memcpy - na pocetku moda

Obrisi OnPlayerPrivmsg

Obrisi OnPlayerInfoChange

Dodaj negdje u modu

stock 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;
}


Mislim da bi moralo biti ok.. al neznam
Aequam memento rebus in arduis servare mentem.

Sve sam napravio kako si napisao evo sad problem
CitatC:\Users\Administrator\Desktop\statrebriga\filterscript\haha.pwn(14) : error 017: undefined symbol "ret_memcpy"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

opet tvoj idiotizam luksa:
C:\Users\Administrator\Desktop\HAHA\filterscript\lol.pwn(14) : error 017: undefined symbol "ret_memcpy"

to znaci da ret_memcpy nije definiran,

a "#pragma unused symbol"
znaci da kompajler zanemari taj simbol

Omg joe -.-.. pa krivo sam procitao, nismo svi trijezni.. ja procitao unused symbol.. nego probaj onda obrisat to bloomer..
Aequam memento rebus in arduis servare mentem.

Puno hvala LuKsa pomogao si mi jako popravio sam
CitatPawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase

Hvala
______________
LOCK
______________