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

Wysłany: 2008-10-18, 17:42


BraYaN_







Wiek: 34
Na forum: 6698 dni
Posty: 276
Nick w MP: BraYaN_

Piwa: 1614

Respekt: 63

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-10-18, 19:36


Mayke512







Wiek: 32
Na forum: 6698 dni
Posty: 48

Piwa: 3022

Respekt: 50

Ostrzeżeń: 100%
Cze??, gdy wstawiam publick public OnPlayerConnect(playerid) { to wywala mi error 021. Wiecie co mo?na z tym zrobi??

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-10-19, 12:27


zengatsu







Wiek: 32
Na forum: 6736 dni
Posty: 9

Piwa: 56

Respekt: 50

Kod:

C:\DOCUME~1\User\Pulpit\PAWNO\moja2(2).pwn(3711) : error 017: undefined symbol "CeleArray"
C:\DOCUME~1\User\Pulpit\PAWNO\moja2(2).pwn(3711) : warning 215: expression has no effect
C:\DOCUME~1\User\Pulpit\PAWNO\moja2(2).pwn(3711) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\User\Pulpit\PAWNO\moja2(2).pwn(3711) : error 029: invalid expression, assumed zero
C:\DOCUME~1\User\Pulpit\PAWNO\moja2(2).pwn(3711) : fatal error 107: too many error messages on one line


a co zrobic z takimi bledami :P

Linia 3711 :)

Kod:

SetPlayerPos(id, CeleArray[idceli][0], CeleArray[idceli][1], CeleArray[idceli][2]);


jak dopisalem #define CeleArray xD to wywala cos takiego
Kod:


C:\DOCUME~1\User\Pulpit\PAWNO\moja2(2).pwn(3712) : error 029: invalid expression, assumed zero
C:\DOCUME~1\User\Pulpit\PAWNO\moja2(2).pwn(3712) : warning 215: expression has no effect
C:\DOCUME~1\User\Pulpit\PAWNO\moja2(2).pwn(3712) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\User\Pulpit\PAWNO\moja2(2).pwn(3712) : error 029: invalid expression, assumed zero
C:\DOCUME~1\User\Pulpit\PAWNO\moja2(2).pwn(3712) : fatal error 107: too many error messages on one line


linia 3712
Kod:


SetPlayerPos(id, CeleArray[idceli][0], CeleArray[idceli][1], CeleArray[idceli][2]);


Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-10-19, 16:36


Mayke512







Wiek: 32
Na forum: 6698 dni
Posty: 48

Piwa: 3022

Respekt: 50

Ostrzeżeń: 100%
errors:

Kod:

C:\Documents and Settings\Grand Theft Auto\Pulpit\testy\ikona.pwn(628) : error 001: expected token: ",", but found "-rational value-"
C:\Documents and Settings\Grand Theft Auto\Pulpit\testy\ikona.pwn(628) : warning 215: expression has no effect
C:\Documents and Settings\Grand Theft Auto\Pulpit\testy\ikona.pwn(628) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Grand Theft Auto\Pulpit\testy\ikona.pwn(628) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Grand Theft Auto\Pulpit\testy\ikona.pwn(628) : 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.


Linijka:

Kod:

SetPlayerCheckpoint(playerid, -1949.2125, 603.4221, 34.5859 3.0);


SOS!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-10-19, 16:44


Kramon

H@ck3d ;]






Wiek: 33
Na forum: 6724 dni
Posty: 44

Piwa: 1938

Respekt: 50

Ostrzeżeń: 100%
Kod:

SetPlayerCheckpoint(playerid, -1949.2125, 603.4221, 34.5859, 3.0);



przecienk m?j uczniu ^^ przed 3.0 codzienie masz domnie sprawe na gg ^^
i codzienie ci pomagam ^^

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-10-20, 21:33


sewerynsenior21
[Usunięty]









elo a jak rozwi?zac te warningi :P
Kod:

C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(904) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(905) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(906) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(907) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(908) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(909) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(1134) : warning 202: number of arguments does not match definition
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(1149) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(1157) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(1165) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(1173) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3582) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3583) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3584) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3585) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3586) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3587) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3588) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3589) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3590) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3591) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3592) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3593) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3594) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3595) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3596) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3597) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3598) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3599) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3600) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3601) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3602) : warning 213: tag mismatch
C:\Documents and Settings\sewerynsenior\Moje dokumenty\Driftersmapbysenior\Driftersmapbysenior.pwn(3603) : warning 213: tag mismatch

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


42 Warnings.


 

 
Wysłany: 2008-10-20, 21:36


The Psychol

Psychol






Wiek: 35
Na forum: 6870 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 | .
warning 219: local variable "string" shadows a variable at a preceding level

gdzie? na g?rze masz ju? new string[256];

w tych linijkach skasuj new string[256];

warning 213: tag mismatch

masz ?le napisan? funkcj?
najlepiej z tym poka? linijki ;)

Podpis

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

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-10-22, 22:42


CodeR

Programista






Wiek: 32
Na forum: 6691 dni
Posty: 70

Piwa: 1461

Respekt: 54,5

Kod:

warning 213: tag mismatch


Oznacza to, ?e masz w niew?a?ciwej kolejno?ci zapisane jakie? tam dane.. :D Sprawd? dok?adnie co gdzie na jakim miejscu powinno by?.. ;)

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-10-27, 00:10


zulek[PL]







Wiek: 36
Na forum: 6781 dni
Posty: 39

Piwa: 560

Respekt: 60

D:\Rockstar Games\Mapa\SuperDrifters.pwn(3413) : error 001: expected token: "#endif", but found "-end of file-"
D:\Rockstar Games\Mapa\SuperDrifters.pwn(3413) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


czemu tak ? :arrow: :piwo:

Podpis
Lubie podkręcać ludzi w samp.
A ich ego wtedy spada do dna
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-10-27, 00:23


The Psychol

Psychol






Wiek: 35
Na forum: 6870 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 | .
ret_memcpy < znajdz i skasuj linijk?

D:\Rockstar Games\Mapa\SuperDrifters.pwn(3413) : error 001: expected token: "#endif", but found "-end of file-"

usu? to

Kod:

#if defined FILTERSCRIPT

i
Kod:

#else

i
Kod:

#endif

albo daj to tak:

Kod:

#if defined FILTERSCRIPT
#endif


Podpis

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

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-10-27, 00:55


zulek[PL]







Wiek: 36
Na forum: 6781 dni
Posty: 39

Piwa: 560

Respekt: 60

D:\Rockstar Games\Mapa\SuperDrifters.pwn(42) : error 017: undefined symbol "ZapiszWszystkim"
D:\Rockstar Games\Mapa\SuperDrifters.pwn(43) : error 029: invalid expression, assumed zero
D:\Rockstar Games\Mapa\SuperDrifters.pwn(43) : error 004: function "OnPlayerCommandText" is not implemented
D:\Rockstar Games\Mapa\SuperDrifters.pwn(47) : error 017: undefined symbol "cmdtext"
D:\Rockstar Games\Mapa\SuperDrifters.pwn(52) : error 017: undefined symbol "Zalogowany"
D:\Rockstar Games\Mapa\SuperDrifters.pwn(52) : error 017: undefined symbol "playerid"
D:\Rockstar Games\Mapa\SuperDrifters.pwn(52) : error 029: invalid expression, assumed zero
D:\Rockstar Games\Mapa\SuperDrifters.pwn(52) : fatal error 107: too many error messages on one line

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


8 Errors.


to jak dodam reg czyli :



Kod:


Podpis
Lubie podkręcać ludzi w samp.
A ich ego wtedy spada do dna
Ostatnio zmieniony przez Pr0f3ssi0n4LisT 2008-10-27, 01:49, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-10-27, 21:07


Hodak







Wiek: 30
Na forum: 6752 dni
Posty: 5

Piwa: 93

Respekt: 50

Ostrzeżeń: 20%
Prosz? o pomoc mam takie b??dy:

Kod:

C:\Documents and Settings\ja\Pulpit\Royal Role Play Beta\gamemodes\Royalnew.pwn(1838) : error 033: array must be indexed (variable "WantedLevel")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


Linijka z b??dem:
Kod:

if(WantedLevel >= 1)


Podpis
[url="http://in-rp.net/"]Second life in a better light.[/url]
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-10-27, 21:16


Law







Wiek: 31
Na forum: 6580 dni
Posty: 39

Piwa: 1318

Respekt: 50

Hodak, spr?buj tak:
Kod:

if(WantedLevel[playerid] > 1)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-10-28, 07:33


zulek[PL]







Wiek: 36
Na forum: 6781 dni
Posty: 39

Piwa: 560

Respekt: 60

a mi kto? pomorze kod da?em wy?ej !! ! :arrow: :piwo:

Podpis
Lubie podkręcać ludzi w samp.
A ich ego wtedy spada do dna
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-10-28, 07:54


ZiPeKs

new zipekS;






Wiek: 36
Na forum: 6529 dni
Posty: 43

Piwa: 469

Respekt: 50

Ostrzeżeń: 80%
?ap jest 0 error?w i 0 warn?w
Kod:

#include <a_samp>
#pragma tabsize 0

#if defined FILTERSCRIPT
#define MAX_CASH 99999999
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA

//------------------
new logged[MAX_PLAYERS];
new logintimeout[MAX_PLAYERS];
public OnFilterScriptInit()
{
SetTimer(ZapiszWszystkim,30000,1);
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);
new tmp[256];
new string[256];

if(!strcmp(cmd, "/register", true)){
if(Zalogowany[playerid]==1){
SendClientMessage(playerid,ZOLTY,"Juz Jeste? Zalogowany");
return 1;{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)){
SendClientMessage(playerid,BIALY,"Wpisz: /register [Has?o]");
return 1;}
if(dini_Exists(udb_encode(PlayerName(playerid)))){
SendClientMessage(playerid,CZERWONY,"Konto Juz Istnieje!");
return 1;}
if(strlen(tmp)>=5 && strlen(tmp)<=20){
dini_Create(udb_encode(PlayerName(playerid)));
dini_IntSet(udb_encode(PlayerName(playerid)), "haslo", udb_hash(tmp));
new IP[24];
GetPlayerIp(playerid,IP,24);
dini_Set(udb_encode(PlayerName(playerid)), "ip", IP);
Zalogowany[playerid]=1;
format(string,sizeof(string),"Oto Twoje Has?o >>>> %s <<<<<Zapami?taj Je!!",tmp);
SendClientMessage(playerid,ZIELONY,string);
}else{
SendClientMessage(playerid,ZOLTY,"Has?o musi byc od 5 do 20 znakow!");
}
return 1;
}
if(!strcmp(cmd, "/login", true)){
if(Zalogowany[playerid]==1){
SendClientMessage(playerid,ZOLTY,"Juz Jeste? Zalogowany");
return 1;}
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)){
SendClientMessage(playerid,BIALY,"Wpisz: /login [Has?o]");
return 1;}
if(!dini_Exists(udb_encode(PlayerName(playerid)))){
SendClientMessage(playerid,CZERWONY,"Z?e Konto");
return 1;}
if(udb_hash(tmp) == strval(dini_Get(udb_encode(PlayerName(playerid)),"haslo"))){
Przywracic(playerid);
LoginTimeOut[playerid]=0;
Zalogowany[playerid]=1;
SendClientMessage(playerid,ZIELONY,">>> Zalogowany <<<");
}else{
SendClientMessage(playerid,CZERWONY,"Z?e Has?o!");}
return 1;
}


public OnPlayerSpawn(playerid){
new string[256];
if(LoginTimeOut[playerid]==1){ //jezeli gracz nie byl zalogowany to go wyrzuci
format(string,sizeof(string),"Gracz %s Zosta? Wyrzucony Z Servara Przez Admina: Ochrona. Powod: Login TimeOut",PlayerName(playerid));
SendClientMessageToAll(CZERWONY,string);
Kick(playerid);
}
return 1;
}

public OnPlayerDisconnect(playerid){
if(dini_Exists(udb_encode(PlayerName(playerid)))){
dini_IntSet(udb_encode(PlayerName(playerid)),"Kasa",GetPlayerMoney(playerid));
}
return 1;
}

forward Przywracic(playerid);
public Przywracic(playerid){
SetPlayerMoney(playerid,strval(dini_Get(udb_encode(PlayerName(playerid)),"kasa")));
}

forward ZapiszWszystkim();
public ZapiszWszystkim(){
for(new i=0; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i) && Zalogowany==1){
dini_IntSet(udb_encode(PlayerName(i)), "Kasa",GetPlayerMoney(i));
}
}
}

public OnPlayerConnect(playerid){
if(dini_Exists(udb_encode(PlayerName(playerid)))){ //sprawdza czy nasze konto istnieje
LoginTimeOut[playerid]=1;//ustawia ze gracz nie jest zalogowany i w spawn go moze wyrzucic
Zalogowany[playerid]=0; //ustawia ze nie jest zalogowany
SendClientMessage(playerid,RED,"Twoj nick jest juz zarejestrowany! Wpisz: /login by sie zalogowa?");
}else{ //jezlei nie posiadamy konta do sie spelnia to nizej
SendClientMessage(playerid,RED,"Wpisz: /register by sie zarejestrowa?.");
SendClientMessage(playerid,GREEN,"jezeli nie chcesz sie rejestrowac wci?ni Shift i graj" );
LoginTimeOut[playerid]=0; //ustawia ze nie moze nas wyrzucic bo nie posiadamy konta
Zalogowany[playerid]=0; // nie jestesmy zalogowani
new tmp[256];
new IP[24];
if(dini_Exists(udb_encode(PlayerName(playerid)))){
tmp = dini_Get(udb_encode(PlayerName(playerid)),"ip");
GetPlayerIp(playerid,IP,24);
if(!strcmp(IP,tmp,true)){
Zalogowany[playerid]=1;
LoginTimeOut[playerid]=0;
SendClientMessage(playerid,GREEN,"ZALOGOWANO !! !! !");
}
}
}
}

PlayerName(playerid){
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
return name;
}
#endif


ale :piwo: da?by? ;D

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