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

Wysłany: 2010-11-28, 16:05


SzoteK

DriftPajace <3






Wiek: 32
Na forum: 5954 dni
Posty: 143
Nick w MP: SzoteK

Piwa: 747

Respekt: 248
Respekt: 248Respekt: 248

mlodzik12 , Z tego co widz? ty ze zmiennej
Kod:

new charfind;

nagle robisz funkcj? :O

if(charfind(plname,'_') < 1 || charfind(plname,'_')

Co to jakie? przeistoczenie nag?e ? :D
Nie ma prawa to dzia?a? ;)

Podpis
Tu był kot ale zjadł go Snoop Dogg
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-11-28, 17:53


mlodzik12

Je**ć RP






Wiek: 29
Na forum: 6214 dni
Posty: 83
Nick w MP: PapaSmerf

Piwa: 597

Respekt: 45,3

Ostrzeżeń: 100%
Dobra poradzi?em sobie z tym g?wnem :)

Teraz takie co? :

Kod:

C:\Users\mikros\Desktop\Hot-RP.pwn(309) : warning 217: loose indentation
C:\Users\mikros\Desktop\Hot-RP.pwn(343) : error 021: symbol already defined: "nickname"
C:\Users\mikros\Desktop\Hot-RP.pwn(379) : warning 219: local variable "Loguje" shadows a variable at a preceding level
C:\Users\mikros\Desktop\Hot-RP.pwn(388) : warning 217: loose indentation
C:\Users\mikros\Desktop\Hot-RP.pwn(438) : warning 219: local variable "Loguje" shadows a variable at a preceding level
C:\Users\mikros\Desktop\Hot-RP.pwn(457) : warning 217: loose indentation
C:\Users\mikros\Desktop\Hot-RP.pwn(457) : error 017: undefined symbol "gTeam"
C:\Users\mikros\Desktop\Hot-RP.pwn(457) : warning 215: expression has no effect
C:\Users\mikros\Desktop\Hot-RP.pwn(457) : error 001: expected token: ";", but found "]"
C:\Users\mikros\Desktop\Hot-RP.pwn(457) : error 029: invalid expression, assumed zero
C:\Users\mikros\Desktop\Hot-RP.pwn(457) : fatal error 107: too many error messages on one line

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


5 Errors.



I kod:

Kod:

public OnPlayerSpawn(playerid)
{
new gPlayerLogged[MAX_PLAYERS];
new KickPlayer[MAX_PLAYERS];
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, 0x6CBFA0FF, "** Serwer wymaga zalogowania si? ! **");
KickPlayer[playerid] = 1;
}

if(gTeam[playerid] == 3)
{
if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Jeste? cz?onkiem ugrupowania. Nie mo?esz zmieni? skina !");
MedicBill[playerid] = 0;
new model = PlayerInfo[playerid][pChar];
if(PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
}
}
return 1;
}


P.S Teraz z tym gTeam tylko jest problem errory, warningi usun??em ;) .

Podpis


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

 
Wysłany: 2010-11-28, 18:19


SzoteK

DriftPajace <3






Wiek: 32
Na forum: 5954 dni
Posty: 143
Nick w MP: SzoteK

Piwa: 747

Respekt: 248
Respekt: 248Respekt: 248

Kod:

error 017: undefined symbol "gTeam"

przecie? wyra?nie pisze ?e nie zdefiniowano takiej zmiennej.
Zobacz czy masz w mapie takie co?
Kod:

gTeam[MAX_PLAYERS]
je?li nie to dodaj na g?rze gamemoda
new gTeam[MAX_PLAYERS];

Podpis
Tu był kot ale zjadł go Snoop Dogg
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-11-28, 18:34


mlodzik12

Je**ć RP






Wiek: 29
Na forum: 6214 dni
Posty: 83
Nick w MP: PapaSmerf

Piwa: 597

Respekt: 45,3

Ostrzeżeń: 100%
SzoteK, Mam w?a?nie na pocz?tku mapy, teraz si? kapn??em i? mam jakie? bugi, aby m?c co? zdefiniowa?, musz? to mie? w danym publicu nad nazw? co definiuje.

P.S Mam twoje pawno, bo mi si? skopsa?o :D .

Podpis


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

 
Wysłany: 2010-11-28, 20:31


ThePiteeer







Wiek: 34
Na forum: 5764 dni
Posty: 2



Respekt: 50

Mam mapk? jak?? z neta... PWN i AMX. PWN jest odblokowane i dlatego zapytam: Czemu gdy wejd? na serwie i wpisz? /register has?o lub /login has?o to wyskakuje ?e nie mo?na ju? si? rejestrowa? ? Server jest ?wie?y... Co jest przyczyn? tego problemu i jak go rozwi?za? ?

Tutaj kodzik do /login
Kod:

if(strcmp(cmd, "/login", true) == 0) {

new tmp[256];
new tmp2[256];
new playername[MAX_PLAYER_NAME];
tmp = dini_Get(FILE_SETTINGS, "register");
if (strval(tmp) == 0) {
SendClientMessage(playerid, COLOR_RED, "* Ju? nie mo?na sie logowa?!");
return 1;
}

tmp = strtok(cmdtext, idx);

GetPlayerName(playerid, playername, sizeof(playername));
if(!strlen(tmp))
SendClientMessage(playerid, COLOR_WHITE, "* U?yj: /login [has?o]");

else {
if (dini_Exists(udb_encode(playername))) {
if (logged[playerid] == 1) {
format(string, sizeof(string), "--- %s ju? zalogowany.", playername);
printf(string);
SendClientMessage(playerid, COLOR_YELLOW, "* Ju? jeste? zalogowany.");
}
else {
tmp2 = dini_Get(udb_encode(playername), "password");
if (udb_hash(tmp) != strval(tmp2)) {
format(string, sizeof(string), "%s (id: %d) z?e has?o: >>> %s <<<.", playername, playerid, tmp);
printf(string);
SendClientMessage(playerid, COLOR_LIGHTRED, "* Z?e has?o.");
}
else {
logged[playerid] = 1;
format(string, sizeof(string), "--- %s (id: %d) zalogowany. Has?o: >>> %s <<<.", playername, playerid, tmp);
printf(string);
SendClientMessage(playerid, COLOR_GREEN, "* Zalogowa?es sie!");
}
}
}
else {
format(string, sizeof(string), "* %s z?e konto.", playername);
SendClientMessage(playerid, COLOR_RED, string);
}
}

return 1;
}

i kod do rejestracji
Kod:

if(strcmp(cmd, "/register", true) == 0) {

new tmp[256];
new tmp2[256];
new playername[MAX_PLAYER_NAME];
tmp = dini_Get(FILE_SETTINGS, "register");
if (strval(tmp) == 0) {
SendClientMessage(playerid, COLOR_RED, "* Ju? nie mo?na sie rejestrowa?!");
return 1;
}
tmp = dini_Get(FILE_SETTINGS, "maxusers");
tmp2 = dini_Get(FILE_TOTALSTAT, "users");
if (strval(tmp2) >= strval(tmp)) {
SendClientMessage(playerid, COLOR_RED, "* Mamy ju? wystarczaj?ca du?o graczy! Nie mo?esz sie zarejestrowa?.");
return 1;
}

tmp = strtok(cmdtext, idx);

GetPlayerName(playerid, playername, sizeof(playername));

if(20 < strlen(tmp) || strlen(tmp) < 5) {
SendClientMessage(playerid, COLOR_YELLOW, "* Has?o musi by? od 5 do 20 znak?w.");
return 1;
}

if(!strlen(tmp))
SendClientMessage(playerid, COLOR_WHITE, "* U?yj: /register [has?o]");

else {
if (!dini_Exists(udb_encode(playername))) {
dini_Create(udb_encode(playername));
dini_IntSet(udb_encode(playername), "password", udb_hash(tmp));
tmp2 = dini_Get(FILE_SETTINGS, "defaultprotection");
dini_IntSet(udb_encode(playername), "protection", strval(tmp2));
dini_Set(udb_encode(playername), "x", "x");
dini_Set(udb_encode(playername), "y", "y");
dini_Set(udb_encode(playername), "z", "z");
if (!dini_Exists(FILE_TOTALSTAT)) dini_Create(FILE_TOTALSTAT);
tmp2 = dini_Get(FILE_TOTALSTAT, "users");
dini_IntSet(FILE_TOTALSTAT, "users", strval(tmp2)+1);
format(string, sizeof(string), "%s (id: %d) utworzy?e? nowe konto. Twoje has?o to >>> %s <<< Zapami?taj je.", playername, playerid, tmp);
printf(string);
format(string, sizeof(string), "Utworzy?e? konto o nazwie: %s! Zaloguj sie! Oto has?o: >>> %s <<< Zapami?taj je.)", playername, tmp);
SendClientMessage(playerid, COLOR_GREEN, string);
}
else {
format(string, sizeof(string), "* %s ju? zarejestrowany.", playername,tmp);
SendClientMessage(playerid, COLOR_RED, string);
}
}

return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-11-28, 21:04


MG303







Wiek: 30
Na forum: 6428 dni
Posty: 654

Piwa: 2990

Respekt: 231,6
Respekt: 231,6Respekt: 231,6

Kod:

if (strval(tmp) == 0) {
SendClientMessage(playerid, COLOR_RED, "* Ju? nie mo?na sie rejestrowa?!");
return 1;
}


wywal to, mo?e pomo?e ;p

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-11-29, 16:42


mlodzik12

Je**ć RP






Wiek: 29
Na forum: 6214 dni
Posty: 83
Nick w MP: PapaSmerf

Piwa: 597

Respekt: 45,3

Ostrzeżeń: 100%
Podpis


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

 
Wysłany: 2010-11-30, 09:48


quack

Biotyka jest mocą.






Wiek: 30
Na forum: 6280 dni
Posty: 11

Piwa: 125

Respekt: 50

Ostrzeżeń: 20%
Mam tyle error?w

co robi?

Kod:



C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1148) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1353) : error 017: undefined symbol "strtok"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1353) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1458) : error 017: undefined symbol "strtok"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1458) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1488) : error 017: undefined symbol "strtok"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1488) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1507) : error 017: undefined symbol "strtok"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1507) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1221) : warning 203: symbol is never used: "idx"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1720) : error 017: undefined symbol "strtok"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1720) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1719) : warning 203: symbol is never used: "idx"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1739) : error 017: undefined symbol "strtok"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1739) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1738) : warning 203: symbol is never used: "idx"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1813) : error 017: undefined symbol "strtok"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1813) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1821) : error 017: undefined symbol "strtok"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1821) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1812) : warning 203: symbol is never used: "idx"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1910) : error 017: undefined symbol "strtok"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1910) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1908) : warning 203: symbol is never used: "idx"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(2000) : error 017: undefined symbol "strtok"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(2000) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(1999) : warning 203: symbol is never used: "idx"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(2031) : error 017: undefined symbol "strtok"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(2031) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(2029) : warning 203: symbol is never used: "idx"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(2056) : error 017: undefined symbol "strtok"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(2056) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(2054) : warning 203: symbol is never used: "idx"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(2091) : error 017: undefined symbol "strtok"
C:\Documents and Settings\W?a?ciciel\Pulpit\ppg.pwn(2091) : error 033: array must be indexed (variable "tmp")


Podpis


Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-11-30, 20:04


mlodzik12

Je**ć RP






Wiek: 29
Na forum: 6214 dni
Posty: 83
Nick w MP: PapaSmerf

Piwa: 597

Respekt: 45,3

Ostrzeżeń: 100%
quack,


Kod:

public OnPlayerCommandText(playerid, cmdtext[])
{
new idx;
new cmd[256];

cmd = strtok(cmdtext, idx);
- Nie zdefiniowa?e? strtok ;) .

Co do tego tmp powiniene? indeksowa? tablic?.


P.S new strotk; - dodaj sobie na pocz?tek bo mog? wyskoczy? Ci errory ;) .

Podpis


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

 
Wysłany: 2010-12-03, 23:50


Radzyniak







Wiek: 31
Na forum: 5693 dni
Posty: 1
Nick w MP: Radzyniak

Piwa: 132

Respekt: 50

Ostrzeżeń: 100%
Co oznacza ten b??d ?
Kod:

C:\Users\Michal\Desktop\phpBB\MapaPTZ.pwn(4082) : error 033: array must be indexed (variable "logon")


Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-14, 13:25


StayAlive







Wiek: 29
Na forum: 5666 dni
Posty: 1
Nick w MP: SA-MP



Respekt: 50

Bedzie ktos w stanie pomoc? Chce skompilowac mape, zeby powywalac z niej niepotrzebne reklamy itp. Dodam, ze pawno widzi mnie chyba 3-ci raz. To co wyniklo z mojej znajomosci ang usunalem, ale teraz potrzebuje waszej pomocy.

Screen bledu: http://img191.imageshack.us/img191/4223/mapabi.jpg (w linku, zeby nie rozciagac forum)

Bledna linijka mapy:

Nick[playerid] = Create3DTextLabel (string22,TEAM_HIT_COLOR, 1529.6,-1691.2,13.3, 40.0, 0, 1);

Cala mapa :
Kod:

http://www.speedyshare.com/files/25701055/twojamapka.pwn


Z gory dzieki za pomoc, mam nadzieje, ze ktos znajdzie chwile czasu (mapka surowa nie zmienialem nic, tylko pare klamr dodalem, jak brakowalo itp)

ps. Nie jestem autorem tej mapy

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-19, 11:56


Mani_13







Wiek: 28
Na forum: 5941 dni
Posty: 5
Nick w MP: Matiss_13

Piwa: 191

Respekt: 50

Co musz? z tym zrobi?, wiem ?e to chodzi o includa, ale nie wiem do ko?ca, co mam z tym zrobi?:
Kod:

C:\Users\Mateusz\Desktop\samp03bsvr_R2_win32\pawno\include\dudb.inc(25) : fatal error 100: cannot read from file: "dutils"


Podpis
Lubię :piwo:
by Me :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-19, 12:15


SzoteK

DriftPajace <3






Wiek: 32
Na forum: 5954 dni
Posty: 143
Nick w MP: SzoteK

Piwa: 747

Respekt: 248
Respekt: 248Respekt: 248

nie masz include o nazwie dutils ;)

Podpis
Tu był kot ale zjadł go Snoop Dogg
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-19, 12:22


Mani_13







Wiek: 28
Na forum: 5941 dni
Posty: 5
Nick w MP: Matiss_13

Piwa: 191

Respekt: 50

Ale takiego includa nie ma tam zapisanego, a we? jeszcze sprawd? co na pocz?tku pisze:
Kod:

C:\Users\Mateusz\Desktop\samp03bsvr_R2_win32\pawno\include\dudb.inc

Mi si? wydaje ?e to co? jest z tym includem ale nie wiem co...

Podpis
Lubię :piwo:
by Me :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-19, 12:42


SzoteK

DriftPajace <3






Wiek: 32
Na forum: 5954 dni
Posty: 143
Nick w MP: SzoteK

Piwa: 747

Respekt: 248
Respekt: 248Respekt: 248

Nie musi by? zapisany w mapce/skrypcie. Np w?a?nie include dudb zawiera w sobie odniesienie do dutils czyli #include <dutils>. Otw?rz sobie notatnikiem include dudb to zobaczysz.
Po prostu pobierz include dutils i nie b?dzie b??du.
Prosz? link http://www.sendspace.com/file/mlcqxi

Podpis
Tu był kot ale zjadł go Snoop Dogg
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