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

Wysłany: 2008-04-15, 07:34


zRAVz







Wiek: 34
Na forum: 6685 dni
Posty: 15

Piwa: 37

Respekt: 50

Dzi?ki, dzia?a dobrze, masz ode mnie :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-04-15, 11:56


pulposlaw







Wiek: 39
Na forum: 6761 dni
Posty: 5

Piwa: 14

Respekt: 50

Wi?c. Mam taki Kodzik:
Kod:


public IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy);//--Linijka 490

if (IsPlayerInArea(playerid, 1478.0940, 1484.2954, -1772.2921, -1770.2494));}//--Teleport DMV //--Linijka 492
{
SetPlayerPos(playerid, 382.6417,173.9645,1008.3828);
{
}
}

Ale, Przy kompilacji wyskakuj? mi Errory:
Kod:


D:\True Crime RP\DALEJ!!!\Moszynpdis.pwn(490) : error 025: function heading differs from prototype
D:\True Crime RP\DALEJ!!!\Moszynpdis.pwn(492) : error 010: invalid function or declaration

Umie kto? mi pom?c ;*?. B?dzie Piwo za pomoc.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-04-15, 18:38


daro1994







Wiek: 31
Na forum: 6745 dni
Posty: 20
Nick w MP: BoLek

Piwa: 294

Respekt: 50

error 025: function heading differs from prototype
Funkcja ro?ni si? od zdeklarowanej w edytorze, musisz zmieni? nazw? funkcji na standardow?.

error 010: invalid function or declaration
W tym b??dzie zazwyczaj chodzi o klamry, sprawd? dok?adnie czy w funkcji kt?r? wskazuje b??d jest tyle samo otwieraj?cych { jak i zamykaj?cych }




To to znaczy

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-04-16, 15:35


Warrior

Lubie Pawno xD






Wiek: 29
Na forum: 6719 dni
Posty: 11

Piwa: 226

Respekt: 50

Ja doda?em tematy do TDM'u i mam b??dy:

Kod:

C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(221) : error 014: invalid statement; not in switch
C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(221) : warning 215: expression has no effect
C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(221) : error 001: expected token: ";", but found ":"
C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(221) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(221) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-04-16, 15:38


Alan

Pawno Team






Wiek: 31
Na forum: 6760 dni
Posty: 56

Piwa: 351

Respekt: 50

Ostrzeżeń: 100%
"Warrior" napisał/a:

C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(221) : error 001: expected token: ";", but found ":"


Kompilator spodziewa? si? ; a znalaz? :

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-04-16, 15:41


Warrior

Lubie Pawno xD






Wiek: 29
Na forum: 6719 dni
Posty: 11

Piwa: 226

Respekt: 50

Teraz mam

Kod:

C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(221) : error 014: invalid statement; not in switch
C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(221) : warning 215: expression has no effect
C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(226) : error 010: invalid function or declaration
C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(231) : error 010: invalid function or declaration
C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(236) : error 010: invalid function or declaration
C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(241) : error 010: invalid function or declaration
C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(246) : error 010: invalid function or declaration
C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(251) : error 010: invalid function or declaration
C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(256) : error 010: invalid function or declaration
C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(261) : error 010: invalid function or declaration
C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(266) : error 010: invalid function or declaration
C:\Documents and Settings\Eryk\Pulpit\sfgangtdm.pwn(271) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


11 Errors.


Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-04-16, 15:48


Alan

Pawno Team






Wiek: 31
Na forum: 6760 dni
Posty: 56

Piwa: 351

Respekt: 50

Ostrzeżeń: 100%
Cytat:

error 010: invalid function or declaration
W tym b??dzie zazwyczaj chodzi o klamry, sprawd? dok?adnie czy w funkcji kt?r? wskazuje b??d jest tyle samo otwieraj?cych { jak i zamykaj?cych }


Brakuje ci klamr ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-04-16, 15:51


Warrior

Lubie Pawno xD






Wiek: 29
Na forum: 6719 dni
Posty: 11

Piwa: 226

Respekt: 50

ale tu prawie wsz?dzie s? klamry... to wygl?da tak:

Kod:

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerClass(playerid, classid);
SetupPlayerForClassSelection(playerid);
gPlayerClass[playerid] = classid;
switch (classid) {
case 0:
{
GameTextForPlayer(playerid, "~b~DANANG", 500, 3);
}
case 1:
{
GameTextForPlayer(playerid, "~b~HITMAN", 500, 3);
}
}
case 2;
{
GameTextForPlayer(playerid, "~b~POLICJA", 500, 3);
}
}
case 3:
{
GameTextForPlayer(playerid, "~b~WOJSKO", 500, 3);
}
}
case 4:
{
GameTextForPlayer(playerid, "~b~PILOT", 500, 3);
}
}
case 5:
{
GameTextForPlayer(playerid, "~b~NINJA", 500, 3);
}
}
case 6:
{
GameTextForPlayer(playerid, "~b~TUNINGOWIEC", 500, 3);
}
}
case 7:
{
GameTextForPlayer(playerid, "~b~KSIADZ", 500, 3);
}
}
case 8:
{
GameTextForPlayer(playerid, "~b~MECHANIK", 500, 3);
}
}
case 9:
{
GameTextForPlayer(playerid, "~b~MEDYK", 500, 3);
}
}
case 10:
{
GameTextForPlayer(playerid, "~b~BUDOWNIK", 500, 3);
}
}
case 11:
{
GameTextForPlayer(playerid, "~w~ARBITER", 500, 3);
}
}
return 1;
}


Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-04-16, 16:08


Alan

Pawno Team






Wiek: 31
Na forum: 6760 dni
Posty: 56

Piwa: 351

Respekt: 50

Ostrzeżeń: 100%
Tutaj chodzi o to ze nie masz tyle samo klamr otwieraj?cych( { ) jak i zamykaj?cych ( } ) z tego co widze masz 24 klamry zamykaj?ce ( } ) a 13 otwieraj?ce( { ),a musisz mie? tyle samo klamr otwieraj?cych i zamykaj?cych np. 12 otwieraj?cych i 12 zamykaj?cych ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-04-16, 16:35


Tomko

Pogromca neo kids






Wiek: 35
Na forum: 6951 dni
Posty: 147

Piwa: 764

Respekt: 50

Warrior, od kiedy to na jedn? klamr? otwieraj?c? przypada dwie zamykaj?ce ? :| dwie klamry zamykaj?ce ma by? tylko na samym ko?cu, jedna zamyka zmienn? ''case11'' a druga ko?cowy warunek ''switch''

Kod:

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerClass(playerid, classid);
SetupPlayerForClassSelection(playerid);
gPlayerClass[playerid] = classid;
switch (classid) {
case 0:
{
GameTextForPlayer(playerid, "~b~DANANG", 500, 3);
}
case 1:
{
GameTextForPlayer(playerid, "~b~HITMAN", 500, 3);
}
case 2;
{
GameTextForPlayer(playerid, "~b~POLICJA", 500, 3);
}
case 3:
{
GameTextForPlayer(playerid, "~b~WOJSKO", 500, 3);
}
case 4:
{
GameTextForPlayer(playerid, "~b~PILOT", 500, 3);
}
case 5:
{
GameTextForPlayer(playerid, "~b~NINJA", 500, 3);
}
case 6:
{
GameTextForPlayer(playerid, "~b~TUNINGOWIEC", 500, 3);
}
case 7:
{
GameTextForPlayer(playerid, "~b~KSIADZ", 500, 3);
}
case 8:
{
GameTextForPlayer(playerid, "~b~MECHANIK", 500, 3);
}
case 9:
{
GameTextForPlayer(playerid, "~b~MEDYK", 500, 3);
}
case 10:
{
GameTextForPlayer(playerid, "~b~BUDOWNIK", 500, 3);
}
case 11:
{
GameTextForPlayer(playerid, "~w~ARBITER", 500, 3);
}
}
return 1;
}


Podpis
.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-04-16, 16:50


Warrior

Lubie Pawno xD






Wiek: 29
Na forum: 6719 dni
Posty: 11

Piwa: 226

Respekt: 50

Dzi?x za pomoc Tomko i Alan, piwko lec? dla was za pomoc

P.S. tylko jeszcze musia?em zmieni? case 2 (zamiast ; da? : )

[ Dodano: 2008-04-17, 15:08 ]
Dodam tu jeszcze pytanie...

Kod:

Symbol nie zosta? nigdzie zdefiniowany.


No w?a?nie... jak mam zdefiniowa? "dini" ?? mam same errory, chodzi o chyba wszystkie "dini" :-? Prosz? o pomoc

[ Dodano: 2008-04-17, 18:29 ]
ju? wyja?nione :)

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-04-19, 12:53


Vito







Wiek: 32
Na forum: 6649 dni
Posty: 26

Piwa: 11

Respekt: 49,1

Ostrzeżeń: 40%
Prosze o pomoc

Kod:

C:\DOCUME~1\Fx\Pulpit\pawno\gamemode\gf.pwn(2144) : error 037: invalid string (possibly non-terminated string)
C:\DOCUME~1\Fx\Pulpit\pawno\gamemode\gf.pwn(2144) : warning 215: expression has no effect
C:\DOCUME~1\Fx\Pulpit\pawno\gamemode\gf.pwn(2144) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\Fx\Pulpit\pawno\gamemode\gf.pwn(2144) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Fx\Pulpit\pawno\gamemode\gf.pwn(2144) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-04-19, 13:49


Alan

Pawno Team






Wiek: 31
Na forum: 6760 dni
Posty: 56

Piwa: 351

Respekt: 50

Ostrzeżeń: 100%
Poka? linijke 2144

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-04-19, 13:55


Vito







Wiek: 32
Na forum: 6649 dni
Posty: 26

Piwa: 11

Respekt: 49,1

Ostrzeżeń: 40%
to :
Kod:

return 1;");


Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-04-19, 14:00


Alan

Pawno Team






Wiek: 31
Na forum: 6760 dni
Posty: 56

Piwa: 351

Respekt: 50

Ostrzeżeń: 100%
Po co ci po return to: " i to ) ?? daj tak:

Kod:

return 1;


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