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

Wysłany: 2010-03-17, 20:43


mlodzik12

Je**ć RP






Wiek: 30
Na forum: 6301 dni
Posty: 83
Nick w MP: PapaSmerf

Piwa: 597

Respekt: 45,3

Ostrzeżeń: 100%
Kod:


C:\Documents and Settings\Szymon\Pulpit\serwer\gamemodes\mapa.pwn(51) : warning 201: redefinition of constant/macro (symbol "COLOR_VIOLET")
C:\Documents and Settings\Szymon\Pulpit\serwer\gamemodes\mapa.pwn(65) : warning 201: redefinition of constant/macro (symbol "COLOR_BLACK")
C:\Documents and Settings\Szymon\Pulpit\serwer\gamemodes\mapa.pwn(67) : warning 201: redefinition of constant/macro (symbol "COLOR_DARKGREEN")
C:\Documents and Settings\Szymon\Pulpit\serwer\gamemodes\mapa.pwn(68) : warning 201: redefinition of constant/macro (symbol "COLOR_LIGHTGREEN")
C:\Documents and Settings\Szymon\Pulpit\serwer\gamemodes\mapa.pwn(69) : warning 201: redefinition of constant/macro (symbol "COLOR_DARKBLUE")
C:\Documents and Settings\Szymon\Pulpit\serwer\gamemodes\mapa.pwn(75) : warning 201: redefinition of constant/macro (symbol "COLOR_DARKRED")
C:\Documents and Settings\Szymon\Pulpit\serwer\gamemodes\mapa.pwn(643) : error 017: undefined symbol "IsVehicleInUse"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.




jak to naprawi? ? :/ Te warningi i error ?

Podpis


Nie zależy mi na piwkach. Jak potraFFię pomóc to pomagam ;)
Ostatnio zmieniony przez mlodzik12 2010-03-17, 20:47, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-03-17, 20:45


Verb

-->GRAFIK<--






Wiek: 29
Na forum: 6458 dni
Posty: 23

Piwa: 646

Respekt: 50

mlodzik12, a poka?esz linijki?


@Down:

A podaj kod ca?y. Ten co si? znajduje wok??.

Podpis
Nikt MNIE już nie chce :( [/color]
Ostatnio zmieniony przez Verb 2010-03-17, 21:02, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-03-17, 20:54


mlodzik12

Je**ć RP






Wiek: 30
Na forum: 6301 dni
Posty: 83
Nick w MP: PapaSmerf

Piwa: 597

Respekt: 45,3

Ostrzeżeń: 100%
if(!IsVehicleInUse(i)) //nieu?ywane pojazdy



Pomyli?em kody i wklei?em do GF'a...

Podpis


Nie zależy mi na piwkach. Jak potraFFię pomóc to pomagam ;)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-03-17, 21:17


The Psychol

Psychol






Wiek: 35
Na forum: 6871 dni
Posty: 2822
Nick w MP: The_Psychol

Piwa: 4390

Respekt: 324
Respekt: 324Respekt: 324Respekt: 324


   Administrator: Admin ma zawsze rację | REGULAMIN FORUM | REKLAMA/VIP | .
"mlodzik12" napisał/a:

C:\Documents and Settings\Szymon\Pulpit\serwer\gamemodes\mapa.pwn(51) : warning 201: redefinition of constant/macro (symbol "COLOR_VIOLET")
C:\Documents and Settings\Szymon\Pulpit\serwer\gamemodes\mapa.pwn(65) : warning 201: redefinition of constant/macro (symbol "COLOR_BLACK")
C:\Documents and Settings\Szymon\Pulpit\serwer\gamemodes\mapa.pwn(67) : warning 201: redefinition of constant/macro (symbol "COLOR_DARKGREEN")
C:\Documents and Settings\Szymon\Pulpit\serwer\gamemodes\mapa.pwn(68) : warning 201: redefinition of constant/macro (symbol "COLOR_LIGHTGREEN")
C:\Documents and Settings\Szymon\Pulpit\serwer\gamemodes\mapa.pwn(69) : warning 201: redefinition of constant/macro (symbol "COLOR_DARKBLUE")
C:\Documents and Settings\Szymon\Pulpit\serwer\gamemodes\mapa.pwn(75) : warning 201: redefinition of constant/macro (symbol "COLOR_DARKRED")


Na g?rze daj

#undefine COLOR_DARKRED
i tak ka?d? t? linijk?
Chodzi o to ?e masz 2 razy zdefinowany ten sam symbol, by? mo?e 2 razy w includzie.

Kod:

IsVehicleInUse(vehicleid){
new temp;
Loop(i){
if(IsPlayerConnected(i) && GetPlayerState(i)==PLAYER_STATE_DRIVER && GetPlayerVehicleID(i)==vehicleid){
temp++;}}
if(temp > 0){ return true; } else return false;}


na dole mapki

Podpis

And that's the bottom line 'cause The Psychol said so!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-03-17, 21:27


mlodzik12

Je**ć RP






Wiek: 30
Na forum: 6301 dni
Posty: 83
Nick w MP: PapaSmerf

Piwa: 597

Respekt: 45,3

Ostrzeżeń: 100%
dzi?ki :D ale ju? si? dowiedzia?em piffko leci.

Kod:

C:\Documents and Settings\Szymon\Pulpit\serwer\gamemodes\mapa.pwn(113) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


o co z tym chodzi ?


linijka:

Kod:

main()


Podpis


Nie zależy mi na piwkach. Jak potraFFię pomóc to pomagam ;)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-03-17, 21:33


mi9h







Wiek: 32
Na forum: 6603 dni
Posty: 17



Respekt: 50

C:\Documents and Settings\Admin\Pulpit\LV~XL~DM~FM XGS v4.0 (PWN)\xgs.pwn(11189) : error 054: unmatched closing brace ("}")

kto wie co mam zrobi? aby si? pozby? tego?

a to pwn tej mapki : http://www.speedyshare.co...FM_XGS_v4.0.rar

mapa nie jest moja ale reklamy chce usun?? i zmieni? adres forum ;P

help za pomo? zimne piffko albo ciep?e ;d

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-03-17, 21:36


bartek1586







Wiek: 38
Na forum: 6174 dni
Posty: 17

Piwa: 50

Respekt: 50

Mam pytanie , zrobi?em skrypt , 0 b??d?w , zero warning?w. Tyle ?e skrypt , w og?le si? nie pojawia. Mapka na serverze jest jedna , 13 skrypt?w (ale po?owa z nich nie dopisana) dopisanych tylko 7 , i nie wiem co robi? , a pilnie potrzebuje tego skryptu.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-03-17, 21:41


mlodzik12

Je**ć RP






Wiek: 30
Na forum: 6301 dni
Posty: 83
Nick w MP: PapaSmerf

Piwa: 597

Respekt: 45,3

Ostrzeżeń: 100%
podaj kod Bartek...


mi9h wgraj tam to pwn. co tam jest tzn. kompiluj...

Kod:

C:\DOCUME~1\Szymon\USTAWI~1\Temp\Rar$EX06.843\LV~XL~DM~FM XGS v4.0\Pawno\include\YSI/Visual/YSI_objects.own(2399) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.


Podpis


Nie zależy mi na piwkach. Jak potraFFię pomóc to pomagam ;)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-03-17, 21:54


bartek1586







Wiek: 38
Na forum: 6174 dni
Posty: 17

Piwa: 50

Respekt: 50

Ok oto kod:

Kod:

#include <a_samp>

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");

}
#endif

public OnGameModeInit()
{

// Don't use these lines if it's a filterscript
CreateObject(978, 2010.3737, 937.9447, 10.5121, 0, 0, 0);
CreateObject(978, 2014.2439, 967.0341, 10.5121, 0, 0, 315);
CreateObject(1237, 2010.0315, 945.3702, 9.6748, 0, 0, 22.5);
CreateObject(1237, 2009.4567, 940.041, 9.6748, 0, 0, 22.5);
CreateObject(1237, 2009.8011, 942.6808, 9.6748, 0, 0, 22.5);
CreateObject(1237, 2011.2561, 965.7691, 9.6748, 0, 0, 22.5);
CreateObject(1282, 1972.2363, 939.0169, 10.5091, 0, 0, 0);
CreateObject(1282, 1970.9535, 928.0318, 10.5091, 0, 0, 0);
CreateObject(1422, 2008.2445, 958.8786, 10.1691, 0, 0, 270);
CreateObject(1422, 2008.0693, 953.7845, 10.2364, 0, 0, 270);
CreateObject(1422, 2007.9943, 949.8656, 10.5743, 0, 0, 270);
CreateObject(1425, 2017.0646, 970.4881, 10.1166, 0, 0, 101.25);
CreateObject(1427, 2031.698, 966.7677, 10.0628, 0, 0, 90);
CreateObject(1427, 2031.0996, 980.9367, 10.7744, 0, 0, 90);
CreateObject(987, 2059.939, 983.0247, 9.6646, 0, 0, 303.75);
CreateObject(987, 2066.0945, 973.2032, 9.5197, 0, 0, 270);
CreateObject(987, 2066.168, 959.6766, 9.2744, 0, 0, 270);
CreateObject(987, 2065.8801, 948.0394, 8.993, 0, 0, 270);
CreateObject(987, 2065.7314, 934.9962, 8.536, 0, 0, 270);
CreateObject(987, 2065.2209, 922.5805, 8.0124, 0, 0, 270);
CreateObject(987, 2065.5342, 908.3574, 7.2402, 0, 0, 236.2501);
CreateObject(991, 2065.5642, 911.0709, 8.6028, 0, 0, 270);
CreateObject(1422, 2062.4321, 896.7041, 7.1215, 0, 0, 11.25);
CreateObject(16401, 2121.9839, 954.1849, 9.8069, 0, 0, 180);
CreateObject(1228, 2065.947, 935.8475, 8.9923, 0, 0, 33.75);
CreateObject(1322, 2054.698, 982.5257, 11.1409, 0, 0, 78.75);
CreateObject(1662, 2041.6793, 949.9921, 11.3087, 0, 0, 101.25);
CreateObject(1662, 2038.7751, 920.0781, 9.6795, 0, 0, 292.5);
CreateObject(18248, 2016.2061, 938.5607, 17.8868, 0, 0, 22.5);
CreateObject(12957, 2021.2755, 905.6599, 9.7796, 0, 0, 90);
return 1;
}


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

PS.Mlodzik masz gadu?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-03-17, 21:58


mkqueu







Wiek: 34
Na forum: 6312 dni
Posty: 71
Nick w MP: x64

Piwa: 132

Respekt: 50

Kod:

native CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);

forward OnFilterScriptInit();
public OnFilterScriptInit()
{
CreateObject(978, 2010.3737, 937.9447, 10.5121, 0, 0, 0);
CreateObject(978, 2014.2439, 967.0341, 10.5121, 0, 0, 315);
CreateObject(1237, 2010.0315, 945.3702, 9.6748, 0, 0, 22.5);
CreateObject(1237, 2009.4567, 940.041, 9.6748, 0, 0, 22.5);
CreateObject(1237, 2009.8011, 942.6808, 9.6748, 0, 0, 22.5);
CreateObject(1237, 2011.2561, 965.7691, 9.6748, 0, 0, 22.5);
CreateObject(1282, 1972.2363, 939.0169, 10.5091, 0, 0, 0);
CreateObject(1282, 1970.9535, 928.0318, 10.5091, 0, 0, 0);
CreateObject(1422, 2008.2445, 958.8786, 10.1691, 0, 0, 270);
CreateObject(1422, 2008.0693, 953.7845, 10.2364, 0, 0, 270);
CreateObject(1422, 2007.9943, 949.8656, 10.5743, 0, 0, 270);
CreateObject(1425, 2017.0646, 970.4881, 10.1166, 0, 0, 101.25);
CreateObject(1427, 2031.698, 966.7677, 10.0628, 0, 0, 90);
CreateObject(1427, 2031.0996, 980.9367, 10.7744, 0, 0, 90);
CreateObject(987, 2059.939, 983.0247, 9.6646, 0, 0, 303.75);
CreateObject(987, 2066.0945, 973.2032, 9.5197, 0, 0, 270);
CreateObject(987, 2066.168, 959.6766, 9.2744, 0, 0, 270);
CreateObject(987, 2065.8801, 948.0394, 8.993, 0, 0, 270);
CreateObject(987, 2065.7314, 934.9962, 8.536, 0, 0, 270);
CreateObject(987, 2065.2209, 922.5805, 8.0124, 0, 0, 270);
CreateObject(987, 2065.5342, 908.3574, 7.2402, 0, 0, 236.2501);
CreateObject(991, 2065.5642, 911.0709, 8.6028, 0, 0, 270);
CreateObject(1422, 2062.4321, 896.7041, 7.1215, 0, 0, 11.25);
CreateObject(16401, 2121.9839, 954.1849, 9.8069, 0, 0, 180);
CreateObject(1228, 2065.947, 935.8475, 8.9923, 0, 0, 33.75);
CreateObject(1322, 2054.698, 982.5257, 11.1409, 0, 0, 78.75);
CreateObject(1662, 2041.6793, 949.9921, 11.3087, 0, 0, 101.25);
CreateObject(1662, 2038.7751, 920.0781, 9.6795, 0, 0, 292.5);
CreateObject(18248, 2016.2061, 938.5607, 17.8868, 0, 0, 22.5);
CreateObject(12957, 2021.2755, 905.6599, 9.7796, 0, 0, 90);
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-03-17, 22:00


bartek1586







Wiek: 38
Na forum: 6174 dni
Posty: 17

Piwa: 50

Respekt: 50

Nie rozumiem tego co mi poda?e? , mo?esz wyja?ni?? :P

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-03-17, 22:35


mlodzik12

Je**ć RP






Wiek: 30
Na forum: 6301 dni
Posty: 83
Nick w MP: PapaSmerf

Piwa: 597

Respekt: 45,3

Ostrzeżeń: 100%
z?e to co on poda?... to b?dzie dobre:

Kod:



public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");

CreateObject(978, 2010.3737, 937.9447, 10.5121, 0, 0, 0);
CreateObject(978, 2014.2439, 967.0341, 10.5121, 0, 0, 315);
CreateObject(1237, 2010.0315, 945.3702, 9.6748, 0, 0, 22.5);
CreateObject(1237, 2009.4567, 940.041, 9.6748, 0, 0, 22.5);
CreateObject(1237, 2009.8011, 942.6808, 9.6748, 0, 0, 22.5);
CreateObject(1237, 2011.2561, 965.7691, 9.6748, 0, 0, 22.5);
CreateObject(1282, 1972.2363, 939.0169, 10.5091, 0, 0, 0);
CreateObject(1282, 1970.9535, 928.0318, 10.5091, 0, 0, 0);
CreateObject(1422, 2008.2445, 958.8786, 10.1691, 0, 0, 270);
CreateObject(1422, 2008.0693, 953.7845, 10.2364, 0, 0, 270);
CreateObject(1422, 2007.9943, 949.8656, 10.5743, 0, 0, 270);
CreateObject(1425, 2017.0646, 970.4881, 10.1166, 0, 0, 101.25);
CreateObject(1427, 2031.698, 966.7677, 10.0628, 0, 0, 90);
CreateObject(1427, 2031.0996, 980.9367, 10.7744, 0, 0, 90);
CreateObject(987, 2059.939, 983.0247, 9.6646, 0, 0, 303.75);
CreateObject(987, 2066.0945, 973.2032, 9.5197, 0, 0, 270);
CreateObject(987, 2066.168, 959.6766, 9.2744, 0, 0, 270);
CreateObject(987, 2065.8801, 948.0394, 8.993, 0, 0, 270);
CreateObject(987, 2065.7314, 934.9962, 8.536, 0, 0, 270);
CreateObject(987, 2065.2209, 922.5805, 8.0124, 0, 0, 270);
CreateObject(987, 2065.5342, 908.3574, 7.2402, 0, 0, 236.2501);
CreateObject(991, 2065.5642, 911.0709, 8.6028, 0, 0, 270);
CreateObject(1422, 2062.4321, 896.7041, 7.1215, 0, 0, 11.25);
CreateObject(16401, 2121.9839, 954.1849, 9.8069, 0, 0, 180);
CreateObject(1228, 2065.947, 935.8475, 8.9923, 0, 0, 33.75);
CreateObject(1322, 2054.698, 982.5257, 11.1409, 0, 0, 78.75);
CreateObject(1662, 2041.6793, 949.9921, 11.3087, 0, 0, 101.25);
CreateObject(1662, 2038.7751, 920.0781, 9.6795, 0, 0, 292.5);
CreateObject(18248, 2016.2061, 938.5607, 17.8868, 0, 0, 22.5);
CreateObject(12957, 2021.2755, 905.6599, 9.7796, 0, 0, 90);



return 1;
}



To jest dobre :F

Podpis


Nie zależy mi na piwkach. Jak potraFFię pomóc to pomagam ;)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-03-18, 07:18


mkqueu







Wiek: 34
Na forum: 6312 dni
Posty: 71
Nick w MP: x64

Piwa: 132

Respekt: 50

Pierwsza sprawa. M?odzik, to co poda?e? tj. to samo co ja poda?em...
Druga sprawa, wyskocz? mu b??dy typu "Undefined symbol "CreateObject".
Trzecia sprawa, nie da?em u g?ry #include <a_samp> bo jest nie potrzebne, zdefinowa?em tylko te funkcje, kt?re s? u?ywane
Czwarta, nie wiesz, nie wprowadzaj kogo? w b??d...

Wygasi?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-03-18, 07:28


mlodzik12

Je**ć RP






Wiek: 30
Na forum: 6301 dni
Posty: 83
Nick w MP: PapaSmerf

Piwa: 597

Respekt: 45,3

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

Pierwsza sprawa. M?odzik, to co poda?e? tj. to samo co ja poda?em...
Druga sprawa, wyskocz? mu b??dy typu "Undefined symbol "CreateObject".
Trzecia sprawa, nie da?em u g?ry #include <a_samp> bo jest nie potrzebne, zdefinowa?em tylko te funkcje, kt?re s? u?ywane
Czwarta, nie wiesz, nie wprowadzaj kogo? w b??d...

Wygasi?.


lol | x100

poco mu ten forward...

forward jest do timmer?w i innych...


wgl. jak sama nazwa m?wi:

FilterScriptInit - To jest FS
GameModeInit - A to jest do mapy np. jak tworzysz map? tam wk?adasz obiekty...

mkqueu,

sam nic nie wiesz.. >.<

bartek1586,

polecam ci NLO :)

i na przysz?o?? jak robisz skrypt to obiekty, bramy, itp. do FilterScriptInit...

mkqueu,

Cz?owieku, nie wyskocz? mu errory bo jeszcze spr. i wgl. ty masz include pewnie zjechane -.- nie dziwie ci si? --.--

Podpis


Nie zależy mi na piwkach. Jak potraFFię pomóc to pomagam ;)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-03-18, 07:38


mkqueu







Wiek: 34
Na forum: 6312 dni
Posty: 71
Nick w MP: x64

Piwa: 132

Respekt: 50

Napisa?em, zrobi?em, ?e nie ma includ?w, popatrz do pliku a_samp.inc, to zobaczysz, ?e s? te samy wpisy ;x
Ka?dy public musi by? zforwardowany. W include a_samp te? jest. Nativem zdefinowa?em funkcj?, kt?ra jest wbudowana w samp-server. Taka sama linijka jest w includzie (a_objects).

Zamiast zrobienia forward, native, to mo?na usun?? te linijki i doda? #include <a_samp>, ale na to samo to wyjdzie.


Nie k??? si? ze mn?, pierw zobacz czy dzia?a, a p??niej pisz...


To te? mo?na wygasi?. Nie mam zamiaru si? k??ci? z osob?, kt?ra sama ma problemy z pawno. W tym si?dz? ju? od dw?ch lat...

Ostatnio zmieniony przez mkqueu 2010-03-18, 07:47, w całości zmieniany 2 razy  
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