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

Wysłany: 2009-05-26, 23:35


Michalec

Dokładnie.






Wiek: 30
Na forum: 6502 dni
Posty: 163
Nick w MP: []Damianos[]

Piwa: 99

Respekt: 86,6

Usu? 71 i 72 .
Podaj linijki innych error?w i warning?w 8-)

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-27, 20:52


adrian_pl_20







Wiek: 31
Na forum: 6780 dni
Posty: 155
Nick w MP: adrian_w

Piwa: 1568

Respekt: 111
Respekt: 111

usun definicje name i string
czyli new ...

Podpis
Oglądaj filmy i seriale online za darmo, bez reklam i limitów

http://maxkino.tv
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-28, 11:50


Lukasion







Wiek: 30
Na forum: 6811 dni
Posty: 2

Piwa: 920

Respekt: -92

Ja mam taki b??d:

Kod:

C:\DOCUME~1\EDEK\Pulpit\KOPIAS~1.PWN(27568) : error 021: symbol already defined: "PlayerToPoint"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.






A to te Linijki z tego b??du:

Kod:

public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
}






Prosz? o Naprawienie tego. B?dzie zimne PIFFO :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-28, 12:14


AdiX







Wiek: 31
Na forum: 6898 dni
Posty: 100

Piwa: 932

Respekt: 50

Masz dwa razy funkcj? PlayerToPoint. Skasuj jedn? :|

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-28, 12:23


Lukasion







Wiek: 30
Na forum: 6811 dni
Posty: 2

Piwa: 920

Respekt: -92

ale gdzie? W?a?nie szuka?em ale nie umie znale??


@EDIT DOWN



Ja mam PlasyerToPoint i PlayerToPointStripped wi?c nie wiem...




Ca?e to skasowa?? :

Kod:

public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
}


Ostatnio zmieniony przez Lukasion 2009-05-28, 12:30, w całości zmieniany 2 razy  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-28, 12:26


AdiX







Wiek: 31
Na forum: 6898 dni
Posty: 100

Piwa: 932

Respekt: 50

PAWNO > CTRL + F > PlayerToPoint > Skasuj jedn? z funkcji :shock:

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-28, 18:37


oski535

Miszczu RP






Wiek: 31
Na forum: 6642 dni
Posty: 19
Nick w MP: ExTreme

Piwa: 2

Respekt: 50

Ostrzeżeń: 20%
Kolejny problem....
Kod:


C:\Documents and Settings\sylwia341\Pulpit\Oskar\GF(4)\gamemodes\TCORP.pwn(26404) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

Header size: 5992 bytes
Code size: 1212444 bytes
Data size: 2212748 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4904 cells (19616 bytes)
Total requirements: 3447568 bytes

1 Warning.




Linijka:
http://img22.imageshack.u...beztytuused.png

Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-28, 18:41


Jimmy J

suy shatan!






Wiek: 32
Na forum: 6700 dni
Posty: 265

Piwa: 3264

Respekt: 54,4

oski535, nie masz returna (return 0;) na ko?cu tego publica.

Podpis

Nie mam stóp...
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-06-05, 16:00


colin_06







Wiek: 37
Na forum: 6779 dni
Posty: 11

Piwa: 134

Respekt: 50

Mam takie errory i waringi :(

Kod:

C:\Documents and Settings\Kamil\Pulpit\rozne - scrypty, serwery itp\SA-MP serwer (DM2)\gamemodes\MaP.pwn(72) : warning 201: redefinition of constant/macro (symbol "COLOR_RED")
C:\Documents and Settings\Kamil\Pulpit\rozne - scrypty, serwery itp\SA-MP serwer (DM2)\gamemodes\MaP.pwn(1607) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Kamil\Pulpit\rozne - scrypty, serwery itp\SA-MP serwer (DM2)\gamemodes\MaP.pwn(1624) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Kamil\Pulpit\rozne - scrypty, serwery itp\SA-MP serwer (DM2)\gamemodes\MaP.pwn(7265) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\Kamil\Pulpit\rozne - scrypty, serwery itp\SA-MP serwer (DM2)\gamemodes\MaP.pwn(7280) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Kamil\Pulpit\rozne - scrypty, serwery itp\SA-MP serwer (DM2)\gamemodes\MaP.pwn(7899) : warning 235: public function lacks forward declaration (symbol "RaportCheater")
C:\Documents and Settings\Kamil\Pulpit\rozne - scrypty, serwery itp\SA-MP serwer (DM2)\gamemodes\MaP.pwn(7910) : warning 235: public function lacks forward declaration (symbol "SendClientMessageToAdmins")
C:\Documents and Settings\Kamil\Pulpit\rozne - scrypty, serwery itp\SA-MP serwer (DM2)\gamemodes\MaP.pwn(7992) : warning 235: public function lacks forward declaration (symbol "KickMsg")
C:\Documents and Settings\Kamil\Pulpit\rozne - scrypty, serwery itp\SA-MP serwer (DM2)\gamemodes\MaP.pwn(8007) : warning 235: public function lacks forward declaration (symbol "BanMsg")
C:\Documents and Settings\Kamil\Pulpit\rozne - scrypty, serwery itp\SA-MP serwer (DM2)\gamemodes\MaP.pwn(8471) : error 021: symbol already defined: "OnPlayerKeyStateChange"
C:\Documents and Settings\Kamil\Pulpit\rozne - scrypty, serwery itp\SA-MP serwer (DM2)\gamemodes\MaP.pwn(8472) : error 017: undefined symbol "Fight_OnPlayerKeyStateChange"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.


PLS pomozcie

Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-06-05, 16:01


Zurrek







Wiek: 30
Na forum: 6544 dni
Posty: 312
Nick w MP: Zurrek

Piwa: 1890

Respekt: 50

Poka? linijki :x

Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-06-05, 23:17


colin_06







Wiek: 37
Na forum: 6779 dni
Posty: 11

Piwa: 134

Respekt: 50

oki, pokaze tylko errory, bo podobno waringow nie trzeba poprawiac :

linijka od 1606 do 1608
Kod:

new tmp[128], gracz, str[128];
tmp = strtok(cmdtext, idx);
gracz = strval(tmp);

linijka od 1623 do 1625
Kod:

new tmp[128], gracz, str[128];
tmp = strtok(cmdtext, idx);
gracz = strval(tmp);

linijka od 7258 do 7161
Kod:

strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))

linijka od 7273 do 7275
Kod:

result[index - offset] = EOS;
return result;
}

linijka 8470 do 8480 -- w tych linijkach sa chyba 2 errory
Kod:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
Fight_OnPlayerKeyStateChange(playerid, newkeys, oldkeys);
if(!gPlayerUsingLoopingAnim[playerid]) return 1;

if(IsKeyJustDown(KEY_SPRINT,newkeys,oldkeys)) {
StopLoopingAnim(playerid);
TextDrawHideForPlayer(playerid,txtAnimHelper);
}
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-06-06, 00:05


Jimmy J

suy shatan!






Wiek: 32
Na forum: 6700 dni
Posty: 265

Piwa: 3264

Respekt: 54,4

Usu? definicj? strtok'a i COLOR_RED, sforwarduj funkcje, do??cz include fight.

Podpis

Nie mam stóp...
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-06-06, 01:09


colin_06







Wiek: 37
Na forum: 6779 dni
Posty: 11

Piwa: 134

Respekt: 50

Te ostatnie errory:
Kod:

C:\Documents and Settings\Kamil\Pulpit\rozne - scrypty, serwery itp\SA-MP serwer (DM2)\gamemodes\MaP.pwn(8471) : error 021: symbol already defined: "OnPlayerKeyStateChange"
C:\Documents and Settings\Kamil\Pulpit\rozne - scrypty, serwery itp\SA-MP serwer (DM2)\gamemodes\MaP.pwn(8472) : error 017: undefined symbol "Fight_OnPlayerKeyStateChange"

Po dodaniu tego includa dalej sa ;/ Ale usunolem pare tych linijek i wszystko git :)
Dzieki za pomoc Dostajesz odemnie zimnie :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-06-09, 19:39


Law







Wiek: 31
Na forum: 6581 dni
Posty: 39

Piwa: 1318

Respekt: 50

Kod:

C:\Documents and Settings\Kamil\Pulpit\rozne - scrypty, serwery itp\SA-MP serwer (DM2)\gamemodes\MaP.pwn(8471) : error 021: symbol already defined: "OnPlayerKeyStateChange"

Usu? to.

Kod:

C:\Documents and Settings\Kamil\Pulpit\rozne - scrypty, serwery itp\SA-MP serwer (DM2)\gamemodes\MaP.pwn(8472) : error 017: undefined symbol "Fight_OnPlayerKeyStateChange"

Musisz to zdefiniowa?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-06-10, 06:43


Matrix_15







Wiek: 33
Na forum: 6336 dni
Posty: 14

Piwa: 69

Respekt: 50

Ostrzeżeń: 20%
Kod:

C:\Documents and Settings\SysOp\Pulpit\lvsfls.pwn(2687) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\SysOp\Pulpit\lvsfls.pwn(2692) : error 029: invalid expression, assumed zero
C:\Documents and Settings\SysOp\Pulpit\lvsfls.pwn(2692) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Documents and Settings\SysOp\Pulpit\lvsfls.pwn(2694) : error 079: inconsistent return types (array & non-array)




Linijki

Kod:


2680 {
2681 SendDeathMessage(killerid,playerid,reason);
2682
2683 if (GetPlayerMoney(playerid) > 0)
2684 {
2685 GivePlayerMoney(killerid, GetPlayerMoney(playerid));
2686 }
2687 return 1;
2688 }
2689 //------------------------------------------------------------------------------
2690
2691 //------------------------------------------------------------------------------
2692 public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
2693 {
2694 return 1;
2695 }
2696 stock IsPlayerDriverInVehicle(playerid, vehicleid, modelid)
2697{
2698 if (IsPlayerInVehicle(playerid, vehicleid) && GetPlayerState 2699(playerid) == 2
2700 && GetVehicleModel(GetPlayerVehicleID(playerid)) == modelid)
2701 return 1;
2702 return 0;
2703 }
2704 //------------------------------------------------------------------------------


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