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

Wysłany: 2010-02-10, 18:25


matias601







Wiek: 36
Na forum: 6122 dni
Posty: 8



Respekt: 50

Panowie! jak pozbyc sie tego syfu?

C:\Documents and Settings\NoJuT\Pulpit\P.A.W.N.O\include\a_sampdb.inc(15) : warning 219: local variable "query" shadows a variable at a preceding level
C:\DOCUME~1\NoJuT\Pulpit\dupa.pwn(3681) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\DOCUME~1\NoJuT\Pulpit\dupa.pwn(5685) : error 017: undefined symbol "ShowPlayerDialog"
C:\DOCUME~1\NoJuT\Pulpit\dupa.pwn(5712) : error 017: undefined symbol "ShowPlayerDialog"
C:\DOCUME~1\NoJuT\Pulpit\dupa.pwn(5718) : error 017: undefined symbol "ShowPlayerDialog"
C:\DOCUME~1\NoJuT\Pulpit\dupa.pwn(5727) : error 017: undefined symbol "ShowPlayerDialog"
C:\DOCUME~1\NoJuT\Pulpit\dupa.pwn(5729) : warning 204: symbol is assigned a value that is never used: "pid"
Pawn compiler 3.0.3367 Copyright (c) 1997-2005, ITB CompuPhase


4 Errors.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-02-10, 18:50


SultanS







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

Piwa: 2306

Respekt: 28,6

Ostrzeżeń: 80%
Prawdopodobnie u?ywasz starego pawno. ?ci?gnij nowe wraz z serwerem, na sa-mp.com. Je?eli to nic nie da(a powinno), to poka? linijki ;)

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-02-10, 20:05


matias601







Wiek: 36
Na forum: 6122 dni
Posty: 8



Respekt: 50

po ?ci?gni?ciu nowego serwa z sa-mp.com wrzucilem include do folderu include no i wyszlo mi to




C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1130) : error 017: undefined symbol "strtok"
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1130) : error 017: undefined symbol "strtok"
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1132) : error 017: undefined symbol "strtok"
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1132) : error 017: undefined symbol "strtok"
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1131) : warning 204: symbol is assigned a value that is never used: "idx"
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1243) : error 017: undefined symbol "strtok"
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1243) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1307) : error 017: undefined symbol "strtok"
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1307) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1385) : error 017: undefined symbol "strtok"
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1385) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1411) : error 017: undefined symbol "strtok"
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1411) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1437) : error 017: undefined symbol "strtok"
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1437) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1463) : error 017: undefined symbol "strtok"
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1463) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1491) : error 017: undefined symbol "strtok"
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1491) : error 033: array must be indexed (variable "dir")
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1498) : error 017: undefined symbol "strtok"
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1498) : error 033: array must be indexed (variable "dir")
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1519) : error 017: undefined symbol "strtok"
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1519) : error 033: array must be indexed (variable "dir1")
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1526) : error 017: undefined symbol "strtok"
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1526) : error 033: array must be indexed (variable "dir1")
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1549) : error 017: undefined symbol "strtok"
C:\Documents and Settings\NoJuT\Pulpit\dupa.pwn(1565) : error 017: undefined symbol "strtok"

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


26 Errors.

nie wiem co z tym zrobic :(

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-02-10, 20:46


Michalec

Dokładnie.






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

Piwa: 99

Respekt: 86,6

Policz klamry licznikiem klamer Roberta ;)
Pami?taj - 26 error?w w pawno = Niezamkni?te/Za du?o otwartych klamer ;)

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-02-10, 21:14


matias601







Wiek: 36
Na forum: 6122 dni
Posty: 8



Respekt: 50

otwartych 862
zamknietych 862
czyli sie zgadza. nie wiem co dalej z tym mam robic :(

dodam jeszcze ze wczesniej normalnie robilo sie ale gdy chcialem dodac do mapy gatesscript to tam przy przerobce byly bledy (gatesScript) wiec sciagnalem includy nowe i od tamtej pory tak sie dzieje :(

dalem na poczatku mapy
new strtok; no i zostaly tylko 4 errory xd no ale wasza pomoc nie na marne idzie piwka dam. tylko przydaloby sie jeszcze mi troche pomoc :)

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



if (strval(tmp) == 1)
{
tmp = dini_Get(FILE_BLACKLIST, playername);
if (strval(strtok(tmp, idx, ',')) == 1) KickMsg(playerid, "Blacklist", strtok(tmp, idx, ','));
idx = 0;
if (strval(strtok(tmp, idx, ',')) == 2) BanMsg(playerid, "Blacklist", strtok(tmp, idx, ','));
}

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-02-11, 10:13


BrendY

Stalker.






Wiek: 33
Na forum: 6491 dni
Posty: 48

Piwa: 2482

Respekt: 35,8

Cytat:

new strtok;
:shock: usu? to...

g?ra mapy (include) :

Kod:

#include <strtok>


a je?li wolisz wklei? kod do mapy to u?yj :

Kod:

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

new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}


w sumie czy jedno czy drugie na to samo wyjdzie.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-02-11, 12:40


matias601







Wiek: 36
Na forum: 6122 dni
Posty: 8



Respekt: 50

Kod:

C:\Documents and Settings\NoJuT\Pulpit\mapa.pwn(1133) : warning 202: number of arguments does not match definition
C:\Documents and Settings\NoJuT\Pulpit\mapa.pwn(1133) : warning 202: number of arguments does not match definition
C:\Documents and Settings\NoJuT\Pulpit\mapa.pwn(1135) : warning 202: number of arguments does not match definition
C:\Documents and Settings\NoJuT\Pulpit\mapa.pwn(1135) : warning 202: number of arguments does not match definition
C:\Documents and Settings\NoJuT\Pulpit\mapa.pwn(3684) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Documents and Settings\NoJuT\Pulpit\mapa.pwn(4770) : warning 202: number of arguments does not match definition
C:\Documents and Settings\NoJuT\Pulpit\mapa.pwn(5680) : warning 235: public function lacks forward declaration (symbol "OnPlayerClickPlayer")
C:\Documents and Settings\NoJuT\Pulpit\mapa.pwn(5683) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\NoJuT\Pulpit\mapa.pwn(5686) : warning 235: public function lacks forward declaration (symbol "OnDialogResponse")
C:\Documents and Settings\NoJuT\Pulpit\mapa.pwn(5710) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\NoJuT\Pulpit\mapa.pwn(5716) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\NoJuT\Pulpit\mapa.pwn(5725) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\NoJuT\Pulpit\mapa.pwn(5708) : warning 204: symbol is assigned a value that is never used: "pid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


a z tym co zrobic? dodalem wczesniej systemPM do mapy no ale sie pogryzlo teraz xd

Ostatnio zmieniony przez matias601 2010-02-11, 13:36, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-02-11, 13:26


xqz

otaku desu!






Wiek: 32
Na forum: 6504 dni
Posty: 723
Nick w MP: xqz

Piwa: 5465

Respekt: 418,6
Respekt: 418,6

matias601, uzywaj znacznika [.code]tekst[./code] //bez kropek.

NT. Musisz sciagnac include do 0.3.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-02-11, 13:38


matias601







Wiek: 36
Na forum: 6122 dni
Posty: 8



Respekt: 50

panowie!
Kod:

C:\Documents and Settings\NoJuT\Pulpit\mapa.pwn(3684) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Documents and Settings\NoJuT\Pulpit\mapa.pwn(5549) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

co z tym zrobic? juz tylko to mi zostalo

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-02-12, 11:03


BrendY

Stalker.






Wiek: 33
Na forum: 6491 dni
Posty: 48

Piwa: 2482

Respekt: 35,8

matias601, poka? linijki.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-02-12, 19:07


Milov







Wiek: 31
Na forum: 6755 dni
Posty: 6

Piwa: 67

Respekt: 50

Ostrzeżeń: 20%
Kod:

C:\Documents and Settings\MiloV.KOMPUTER\Pulpit\Server\gamemodes\dadqa.pwn(5) : fatal error 100: cannot read from file: "forward"

Linijka:
Kod:

#include <forward>


Mam najnowsze pawn i niemam tego include czy mo?e to inny b??d?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-02-12, 21:06


Blest







Wiek: 45
Na forum: 6114 dni
Posty: 4

Piwa: 808

Respekt: 50

C:\Users\Kamil\Desktop\LV~XL~DM~FM PsZ v4.0\Pawno+Include\include\YSI/Visual/YSI_objects.own(2399) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

Kod:

//==============================================================================

public GetPlayerId(playername[])
{
if (IsNumeric(playername))
if (IsPlayerConnected(strval(playername))) return strval(playername);
else
for (new i=0;i<MAX_PLAYERS;i++)
if ((IsPlayerConnected(i)) && (strcmp(playername, gPlayerName[i], true) == 0)) return i;
return INVALID_PLAYER_ID;
}
//==============================================================================

public PropertyScoreUpdate()
{
SetWeather(random(19));
new owners[MAX_PROPERTIES];
new payments[MAX_PROPERTIES];

for(new i=0; i < MAX_PROPERTIES; i++)
owners[i]=999;

for(new i=0; i < MAX_PROPERTIES; i++)
{
if(propertyOwner[i] < 999) {

for(new j=0; j < MAX_PROPERTIES; j++) {
if(owners[j]==propertyOwner[i]) {
payments[j]+=propertyEarnings[i];
j = MAX_PROPERTIES;
} else if (owners[j]==999) {
owners[j]=propertyOwner[i];
payments[j]+=propertyEarnings[i];
j = MAX_PROPERTIES;
}
}

}
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-02-13, 17:53


jacekp54







Wiek: 31
Na forum: 6369 dni
Posty: 40
Nick w MP: Ryszard

Piwa: 3

Respekt: 47,9

error 102: table overflow: "loop table" :shock:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-02-14, 11:14


BrendY

Stalker.






Wiek: 33
Na forum: 6491 dni
Posty: 48

Piwa: 2482

Respekt: 35,8

jacekp54, linijk? podaj.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-02-18, 11:59


_tmk_







Wiek: 29
Na forum: 6108 dni
Posty: 39
Nick w MP: TmK

Piwa: 380

Respekt: 56

ja jestem pocz?tkuj?cy i napisalem tak? komende na zabijanie gracza czy ktos mi powie co w tym kodzie jest ?le:

Kod:


public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/killer", cmdtext, true, 10) == 0)
{
new string;
new idx;
new id[252];
id = strtok(cmdtext, idx);
if(strlen(id) > 0 && strlen(id) < 3)
{
SetPlayerHealth(strval(id), 0);
format(string, sizeof(string), "Zabi?e? gracza o id %c.", strval(id), 4);//to ta linijka
}
else
{
SendClientMessage(playerid, color, "U?yj /killer id");
}
return 1;
}
return 0;
}


errory:
C:\Documents and Settings\JA\Pulpit\zabijaniegracza.pwn(22) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\JA\Pulpit\zabijaniegracza.pwn(22) : error 035: argument type mismatch (argument 1)

prosze o pomoc!

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