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

Wysłany: 2010-06-22, 14:50


Cz3chu

Szary człowiek






Wiek: 28
Na forum: 6044 dni
Posty: 239
Nick w MP: Czechu

Piwa: 174

Respekt: 54,3

"Serta" napisał/a:

Wchodzisz na http://gtamap.delux-host.com/converter/ dajesz Przegladaj i wyszukujesz twoj plik w folderze MTA potem w tabelce wybierasz "Pawn code for SA-MP" potem klikasz w Settings i dajesz "Self Running Gamemode" i masz gotowa mapke juz z publicami ;)


Jak mam z tego zrobi? amx ? [/quote]

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-06-22, 16:50


SultanS







Wiek: 31
Na forum: 6793 dni
Posty: 201
SPONSOR

Piwa: 2306

Respekt: 28,6

Ostrzeżeń: 80%
Cz3chu, jak otrzymasz kod, to otw?rz nowy plik .pwn. Wyczy?? go. Na g?rze mapy dodaj
Kod:

#include <a_samp>
ni?ej -
Kod:

public OnFilterScriptInit() {

Nast?pnie dodaj ten kod, co Ci konwerter "wyrzuci?". Ca?o?? zako?cz returnem -
Kod:

return 1; }
i wci?nij f5 ;)
Ca?a filozofia.

Podpis
fajnie się trollowało.
niniejszym ogłaszam, że po przepracowaniu roku na modzie i długiego czasu wstecz odchodzę niechlubnie.
nie byłem sobą, udawałem, bo tak chciał Bóg. A Bóg nigdy się nie myli
jo.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-06-23, 11:01


Cz3chu

Szary człowiek






Wiek: 28
Na forum: 6044 dni
Posty: 239
Nick w MP: Czechu

Piwa: 174

Respekt: 54,3

Kod:

C:\GRY\Gta\Pawno\mapawirtual.pwn(5) : error 025: function heading differs from prototype
C:\GRY\Gta\Pawno\mapawirtual.pwn(5) : warning 215: expression has no effect
C:\GRY\Gta\Pawno\mapawirtual.pwn(6) : error 021: symbol already defined: "CreateObject"
C:\GRY\Gta\Pawno\mapawirtual.pwn(294) : error 010: invalid function or declaration
C:\GRY\Gta\Pawno\mapawirtual.pwn(299) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.



Co teraz ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-06-23, 19:22


SultanS







Wiek: 31
Na forum: 6793 dni
Posty: 201
SPONSOR

Piwa: 2306

Respekt: 28,6

Ostrzeżeń: 80%
Kod:

#include <a_samp>
public OnFilterScriptInit() {
// Tu, zamiast tego tekstu, wklejasz CreateObject.
return 1;}


To chyba nie jest trudne ;)
w miejsce komentarza maj? by? tylko obiekty, w postaci CreateObject.

Podpis
fajnie się trollowało.
niniejszym ogłaszam, że po przepracowaniu roku na modzie i długiego czasu wstecz odchodzę niechlubnie.
nie byłem sobą, udawałem, bo tak chciał Bóg. A Bóg nigdy się nie myli
jo.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-06-24, 01:16


kaminiak

Były Head Admin Psr24.pl






Wiek: 33
Na forum: 6387 dni
Posty: 46
Nick w MP: [PSR]Kaminiak

Piwa: 47

Respekt: 50

Ostrzeżeń: 20%
Kod:

#include <a_samp>

new timer[MAX_PLAYERS];
new min[MAX_PLAYERS];
new sek[MAX_PLAYERS];
new Text:lolek[MAX_PLAYERS];

public OnFilterScriptInit()
{
for(new i=0; i<GetMaxPlayers(); i++)
{
lolek = TextDrawCreate(499.00,118.00,"0:00");
}
return 1;
}

public OnPlayerConnect(playerid)
{
timer[playerid]=SetTimerEx("czas", 1000, true, "d", playerid);
return 1;
}

forward Czas(playerid);
public Czas(playerid)
{
if(IsPlayerConnected(playerid))
{
if(sek[playerid]==60)
{
min[playerid]++;
sek[playerid]=0;
}else{
sek[playerid]++;
}
new string[256];
if(sek[playerid]<=9)
{
format(string, sizeof(string), "%d:0%d", min[playerid], sek[playerid]);
}else{
format(string, sizeof(string), "%d:%d", min[playerid], sek[playerid]);
}
TextDrawSetString(Textdraw[playerid], string);
}else{
KillTimer(timer[playerid]);
min[playerid]=0;
sek[playerid]=0;
}
return 1;
}


Kod:

E:\Documents and Settings\Kaminiak\Pulpit\czas.pwn(4) : error 021: symbol already defined: "min"
E:\Documents and Settings\Kaminiak\Pulpit\czas.pwn(12) : error 033: array must be indexed (variable "lolek")
E:\Documents and Settings\Kaminiak\Pulpit\czas.pwn(30) : error 028: invalid subscript (not an array or too many subscripts): "min"
E:\Documents and Settings\Kaminiak\Pulpit\czas.pwn(30) : warning 215: expression has no effect
E:\Documents and Settings\Kaminiak\Pulpit\czas.pwn(30) : error 001: expected token: ";", but found "]"
E:\Documents and Settings\Kaminiak\Pulpit\czas.pwn(30) : error 029: invalid expression, assumed zero
E:\Documents and Settings\Kaminiak\Pulpit\czas.pwn(30) : fatal error 107: too many error messages on one line

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


Podpis
www.Psr24.pl

91.204.163.105:9390
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-06-26, 21:04


Mefisto1







Wiek: 41
Na forum: 5946 dni
Posty: 3
Nick w MP: Rastah

Piwa: 13

Respekt: 50

Potrzebuje pomocy MAM TAKIE ERRORY, B?AGAM JE?LI PODACIE MI DOBRY KOD I B?DZIE DZIA?A? I SI? SKOMPLIKUJE DOSTAJESZ :arrow: :piwo:
Kod:

C:\Documents and Settings\Patryk\Pulpit\skrypty\Mapeczkadupeczka.pwn(6061) : error 025: function heading differs from prototype

Taki error i mapa si? nie komplikuje nie rozumiem tego co pisze na pierwszej stronie xD, dlatego wole nie bra? tego w swoje r?c?.

Kod do tego miejsca:
Kod:

public OnVehicleRespray(vehicleid, color1, color2)
{
if(vehicleid>=298 && vehicleid <=338)
{
CarInfo[vehicleid][cColor1] = color1;
CarInfo[vehicleid][cColor2] = color2;
SaveCarCoords();
}
ChangeVehicleColor(vehicleid, color1, color2);
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-06-26, 22:15


kaminiak

Były Head Admin Psr24.pl






Wiek: 33
Na forum: 6387 dni
Posty: 46
Nick w MP: [PSR]Kaminiak

Piwa: 47

Respekt: 50

Ostrzeżeń: 20%
Prosz? :)

Kod:

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
if(vehicleid>=298 && vehicleid <=338)
{
CarInfo[vehicleid][cColor1] = color1;
CarInfo[vehicleid][cColor2] = color2;
SaveCarCoords();
}
ChangeVehicleColor(vehicleid, color1, color2);
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}


Podpis
www.Psr24.pl

91.204.163.105:9390
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-06-28, 12:34


eminem

Programista c++/Lua






Wiek: 37
Na forum: 6772 dni
Posty: 25
Nick w MP: Mike75 Nexigen

Piwa: 245

Respekt: 45,3

Kod:

new.pwn(195) : warning 201: redefinition of constant/macro (symbol "E_STREAMER_TEST_LOS")
new.pwn(196) : warning 201: redefinition of constant/macro (symbol "E_STREAMER_TYPE")
new.pwn(197) : warning 201: redefinition of constant/macro (symbol "E_STREAMER_WORLD_ID")
new.pwn(198) : warning 201: redefinition of constant/macro (symbol "E_STREAMER_X")
new.pwn(199) : warning 201: redefinition of constant/macro (symbol "E_STREAMER_Y")
new.pwn(201) : warning 201: redefinition of constant/macro (symbol "E_STREAMER_Z")


A tu kod pawn

Kod:

enum
{
E_STREAMER_ATTACHED_PLAYER,
E_STREAMER_ATTACHED_VEHICLE,
E_STREAMER_COLOR,
E_STREAMER_DISTANCE,
E_STREAMER_DRAW_DISTANCE,
E_STREAMER_EXTRA_ID,
E_STREAMER_INTERIOR_ID,
E_STREAMER_MARKER_TYPE,
E_STREAMER_MAX_X,
E_STREAMER_MAX_Y,
E_STREAMER_MAX_Z,
E_STREAMER_MIN_X,
E_STREAMER_MIN_Y,
E_STREAMER_MIN_Z,
E_STREAMER_MODEL_ID,
E_STREAMER_NEXT_X,
E_STREAMER_NEXT_Y,
E_STREAMER_NEXT_Z,
E_STREAMER_PLAYER_ID,
E_STREAMER_R_X,
E_STREAMER_R_Y,
E_STREAMER_R_Z,
E_STREAMER_SIZE,
E_STREAMER_TEST_LOS,
E_STREAMER_TYPE,
E_STREAMER_WORLD_ID,
E_STREAMER_X,
E_STREAMER_Y,
E_STREAMER_Z
}


Help

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-07-07, 22:11


SiEkO

Emeryt pawno ;)






Wiek: 30
Na forum: 5913 dni
Posty: 24

Piwa: 980

Respekt: 50

Co? chyba 2 razy zdefiniowales ...

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-07-10, 19:17


ZeDoZ







Wiek: 31
Na forum: 6456 dni
Posty: 8
Nick w MP: ZeDoZ

Piwa: 89

Respekt: 50

Ostrzeżeń: 20%
Kod:

C:\Documents and Settings\ZeDoZ\Pulpit\Serwer\gamemodes\ws4.pwn(1589) : error 012: invalid function call, not a valid address
C:\Documents and Settings\ZeDoZ\Pulpit\Serwer\gamemodes\ws4.pwn(1589) : warning 215: expression has no effect
C:\Documents and Settings\ZeDoZ\Pulpit\Serwer\gamemodes\ws4.pwn(1589) : warning 215: expression has no effect
C:\Documents and Settings\ZeDoZ\Pulpit\Serwer\gamemodes\ws4.pwn(1589) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\ZeDoZ\Pulpit\Serwer\gamemodes\ws4.pwn(1589) : error 029: invalid expression, assumed zero
C:\Documents and Settings\ZeDoZ\Pulpit\Serwer\gamemodes\ws4.pwn(1589) : 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.



B??d w tmp = strtok(cmdtext, idx);

[ Dodano: 2010-07-11, 08:44 ]
o cho chodzi w tym

Kod:

tmp = strtok(cmdtext, idx);


??

Podpis


Pomagam wszystkim :) .
Na gg nie pomagam ;P .

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-07-20, 12:13


Lazan74







Wiek: 35
Na forum: 6652 dni
Posty: 7
Nick w MP: Lazan74

Piwa: 1

Respekt: 50

Mam pytanie.
Jak pozby? si? tych error?w?

C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1097) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1097) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1099) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1099) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1098) : warning 204: symbol is assigned a value that is never used: "idx"
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1265) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1265) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1504) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1504) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1555) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1555) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1601) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1601) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1686) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1686) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1799) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1799) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1938) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(1938) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(2017) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(2017) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(2041) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(2041) : error 033: array must be indexed (variable "dir1")
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(2048) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(2048) : error 033: array must be indexed (variable "dir1")
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(2081) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Pulpit\Golf.pwn(2081) : error 033: array must be indexed (variable "dir1")

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


26 Errors.

Wiem ?e co? mam jako? zdefiniowa? ale nie wiem jak a nie chc? niczego zepsu? ;/

Podpis

Był raz sobie Pan Opis i Pan Popis, Pan Opis się Opisał a Pan Popis się Popisał...
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-07-20, 12:28


The Fake







Wiek: 29
Na forum: 6061 dni
Posty: 36
Nick w MP: isoa.fake

Piwa: 17

Respekt: 50

g?ra moda, pod includami:
Kod:

include <strtok>

Resztu nie wiem :-?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-07-23, 23:11


Karll

Yo.






Wiek: 36
Na forum: 6465 dni
Posty: 11
Nick w MP: Karll

Piwa: 160

Respekt: 50

Dobry wiecz?r, m?g?by mi kto? pom?c bo odpowiedzi jasnej znale?? nie mog?.
Mam ot?? taki error, kt?rego pozby? si? wielce nie mog?.

Kod:

(35) : error 029: invalid expression, assumed zero
(140) : warning 203: symbol is never used: "OnPlayerCommandText"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


Linijka 35:
Kod:

public OnPlayerCommandText(playerid, cmdtext[])


Linijka 140:
Kod:

Jest to linia po ostatnim zapisie w kodzie, mianowicie po #endif


Podpis
rp-pl.net player.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-07-24, 08:11


mkqueu







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

Piwa: 132

Respekt: 50

Karll, m?g?by? poda? kilka linijek przed i po linijce 35?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-07-24, 14:29


Karll

Yo.






Wiek: 36
Na forum: 6465 dni
Posty: 11
Nick w MP: Karll

Piwa: 160

Respekt: 50

Dobra, upora?em si? z tym. Dzi?kuj? za ch?? pomocy.

Podpis
rp-pl.net player.
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