Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2008-01-11, 18:53


Tomko

Pogromca neo kids






Wiek: 35
Na forum: 6950 dni
Posty: 147

Piwa: 764

Respekt: 50

if(strcmp(cmdtext, "/tele", true) == 0){
:|

Podpis
.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-01-11, 18:58


arek1995

aka Artexx






Wiek: 30
Na forum: 6912 dni
Posty: 63
Nick w MP: Artexx

Piwa: 241

Respekt: 50

Ostrzeżeń: 40%
i jescze jedno jak w?anczam serv to wida? ?e skrypt jest on ale nie wida? napisu jaki usatali?em

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-01-12, 18:41


Lukasz007







Wiek: 32
Na forum: 6869 dni
Posty: 557

Piwa: 1482

Respekt: 52,7

To jest m?j error(y):
Kod:

C:\Documents and Settings\Admin\Pulpit\Pulpit\?ukasz\Tornado\lukasz0072.1.1.pwn(491) : warning 235: public function lacks forward declaration (symbol "PlayerLeaveGang")
C:\Documents and Settings\Admin\Pulpit\Pulpit\?ukasz\Tornado\lukasz0072.1.1.pwn(537) : warning 235: public function lacks forward declaration (symbol "getCheckpointType")
C:\Documents and Settings\Admin\Pulpit\Pulpit\?ukasz\Tornado\lukasz0072.1.1.pwn(543) : warning 235: public function lacks forward declaration (symbol "PayPlayerInArea")
C:\Documents and Settings\Admin\Pulpit\Pulpit\?ukasz\Tornado\lukasz0072.1.1.pwn(561) : warning 235: public function lacks forward declaration (symbol "TimeUpdate")
C:\Documents and Settings\Admin\Pulpit\Pulpit\?ukasz\Tornado\lukasz0072.1.1.pwn(568) : warning 235: public function lacks forward declaration (symbol "GetPlayerId")
C:\Documents and Settings\Admin\Pulpit\Pulpit\?ukasz\Tornado\lukasz0072.1.1.pwn(579) : warning 235: public function lacks forward declaration (symbol "PirateShipScoreUpdate")

Nie da?em ca?ego bo jest max 4000 znak?w i sie nie zmie?ci?o. ;p

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-01-12, 18:43


Tomko

Pogromca neo kids






Wiek: 35
Na forum: 6950 dni
Posty: 147

Piwa: 764

Respekt: 50

Antek007, 1 post tego tematu :|

Podpis
.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-01-12, 18:57


Lukasz007







Wiek: 32
Na forum: 6869 dni
Posty: 557

Piwa: 1482

Respekt: 52,7

Sory, ale nie znalaz?em, prosz?, odp.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-01-12, 19:02


arek1995

aka Artexx






Wiek: 30
Na forum: 6912 dni
Posty: 63
Nick w MP: Artexx

Piwa: 241

Respekt: 50

Ostrzeżeń: 40%
Antek007,

to jest to

warning 235: public function lacks forward declaration
Oznacza to, ?e funkcja nie jest zaforwardowana, podobnie jak wy?ej b??d mo?na bardzo ?atwo usun??, w jaki spos?b ? najpierw piszemy forward a potem ca?? nazw? funkcji do kt?rej odwo?uje sie b??d, np.
forward MojaNazwaFunkcji();

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-01-12, 22:11


Lukasz007







Wiek: 32
Na forum: 6869 dni
Posty: 557

Piwa: 1482

Respekt: 52,7

Zmieni?em i pisze tak:
Kod:

C:\Documents and Settings\Admin\Pulpit\Pulpit\?ukasz\Tornado\lukasz0072.1.1.pwn(4231) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-01-13, 10:16


Dudo

Pawno man :)






Wiek: 34
Na forum: 6761 dni
Posty: 32

Piwa: 56

Respekt: 50

Pierwszy post :evil: :evil:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-01-15, 20:03


Kamil134

Po Przerwie






Wiek: 36
Na forum: 6767 dni
Posty: 15

Piwa: 1590

Respekt: 50

Ostrzeżeń: 100%
daj kod linijki 4231

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-01-16, 18:43


Lukasz007







Wiek: 32
Na forum: 6869 dni
Posty: 557

Piwa: 1482

Respekt: 52,7

Rozwiaza?em z pomoc? Lukiego 007. Terzeba by?o z tym co w nawiasie tam jest skopiowa?.
Mam taki b??d jeszcze:
Kod:

C:\Documents and Settings\Admin\Pulpit\Pulpit\?ukasz\Tornado\lukasz0072.1.1.pwn(1149) : warning 225: unreachable code
C:\Documents and Settings\Admin\Pulpit\Pulpit\?ukasz\Tornado\lukasz0072.1.1.pwn(1396) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

Header size: 2800 bytes
Code size: 182664 bytes
Data size: 157644 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4467 cells (17868 bytes)
Total requirements: 359492 bytes

2 Warnings.

Linijka 1149:
Kod:

return 1;

Linijka 1396:
Kod:

return 1;


Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-01-16, 18:46


Dudo

Pawno man :)






Wiek: 34
Na forum: 6761 dni
Posty: 32

Piwa: 56

Respekt: 50

Dajesz klamre { ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-01-16, 19:03


Lukasz007







Wiek: 32
Na forum: 6869 dni
Posty: 557

Piwa: 1482

Respekt: 52,7

To jest najbli?sza okolica warningu, linijka nr 1149 jest 3 od do?u:
Kod:

if (strcmp(cmdtext,"/adminroom",true)==0){ //goes to admin room
if(IsPlayerAdmin(playerid))
{
SetPlayerInterior(playerid,0);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Zosta?es teleportowany do pokoju admin?w.");
SetPlayerPos(playerid,66.937911,-83.143486,0.388838);
return 1;
}
else
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Nie jeste? adminem!");
return 1;
}
return 1;
}
if(strcmp(cmd, "/register", true) == 0) {


Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-01-16, 19:06


Tomko

Pogromca neo kids






Wiek: 35
Na forum: 6950 dni
Posty: 147

Piwa: 764

Respekt: 50

Antek007, daj tak
Kod:

if (strcmp(cmdtext,"/adminroom",true)==0){ //goes to admin room
if(IsPlayerAdmin(playerid))
{
SetPlayerInterior(playerid,0);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Zosta?es teleportowany do pokoju admin?w.");
SetPlayerPos(playerid,66.937911,-83.143486,0.388838);
}else{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Musisz by? adminem ?eby to u?y?.!");
}
return 1;
}


Podpis
.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-01-16, 20:08


Lukasz007







Wiek: 32
Na forum: 6869 dni
Posty: 557

Piwa: 1482

Respekt: 52,7

Ten sam b??d mam tu:
Kod:

if(strcmp(cmd, "/skok", true)==0 ) {
new newz;
new tmp[256];
tmp = strtok(cmdtext, idx);
newz = strval(tmp);

if(!newz) {
SendClientMessage(playerid, COLOR_GREEN, "WPISZ: /skok [wysokosc w metrach]");
return 1;
}
else if (newz >20000 || newz <1000) {
SendClientMessage(playerid, COLOR_RED, "Podaj wysoko?? z zakresu od 1000 do 20000 m!");
return 1;
}
else {
format(tmp, sizeof(tmp), "Wykonujesz skok spadochronowy z wysokosci %d m! Yeah! Ale jazda!", newz);
SendClientMessage(playerid, COLOR_GREEN, tmp);
if (GetPlayerMoney(playerid) > 999){
GivePlayerMoney(playerid,-1000);
new Float:x;
new Float:y;
new Float:z;
GivePlayerWeapon(playerid,46,1);
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(playerid,x,y,z+newz);
GameTextForPlayer(playerid,"YYYYEEEAAAAAAAHHHHHHH!!!",2000,5);
}
else{
SendClientMessage(playerid,COLOR_RED,"Nie stac cie na skok spadochronowy. Mo?e na raty?");
}
return 1;
}
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-01-16, 20:10


Tomko

Pogromca neo kids






Wiek: 35
Na forum: 6950 dni
Posty: 147

Piwa: 764

Respekt: 50

Kod:

if(strcmp(cmd, "/skok", true)==0 ) {
new newz;
new tmp[256];
tmp = strtok(cmdtext, idx);
newz = strval(tmp);

if(!newz) {
SendClientMessage(playerid, COLOR_GREEN, "WPISZ: /skok [wysokosc w metrach]");
}
else if (newz >20000 || newz <1000) {
SendClientMessage(playerid, COLOR_RED, "Podaj wysoko?? z zakresu od 1000 do 20000 m!");

}else{
format(tmp, sizeof(tmp), "Wykonujesz skok spadochronowy z wysokosci %d m! Yeah! Ale jazda!", newz);
SendClientMessage(playerid, COLOR_GREEN, tmp);
if (GetPlayerMoney(playerid) > 999){
GivePlayerMoney(playerid,-1000);
new Float:x;
new Float:y;
new Float:z;
GivePlayerWeapon(playerid,46,1);
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(playerid,x,y,z+newz);
GameTextForPlayer(playerid,"YYYYEEEAAAAAAAHHHHHHH!!!",2000,5);
}else{
SendClientMessage(playerid,COLOR_RED,"Nie stac cie na skok spadochronowy. Mo?e na raty?");
}
}
return 1;
}


Podpis
.
Postaw piwo autorowi tego posta
 

 
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » BŁĘDY PRZY KOMPILACJI - ROZWIĄZANIE Odpowiedz do tematu

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku