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

Wysłany: 2010-12-19, 16:46


Mani_13







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

Piwa: 191

Respekt: 50

SzoteK, okay, dzi?ki za pomoc, i za to ?e chcia?o ci si? pisa?. ;)
A wracaj?c do tamtego, mia?e? racje, teraz wszytko dzia?a, tylko za? jeszcze troch? tych includ?w musia?em doda? ?eby dzia?a?o do ko?ca... :D
Za pomoc :piwo: ci postawi? ;)

Pozdroo. 8-)


Podpis
Lubię :piwo:
by Me :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-20, 18:34


Gregor1234







Wiek: 39
Na forum: 5773 dni
Posty: 1
Nick w MP: Marycha96



Respekt: 50

C:\Documents and Settings\Karol\Pulpit\PBS_12.pwn(10119) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")

Mi wyskakuje cos takiego to co amam wpisac ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-20, 23:17


BraYaN_







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

Piwa: 1614

Respekt: 63

Musisz zforwardowac ten public, lub go ca?kowicie usun??, bo w nowym sampie ju? go nie ma.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-21, 14:36


BrendY

Stalker.






Wiek: 32
Na forum: 6404 dni
Posty: 48

Piwa: 2482

Respekt: 35,8

?eby uzupe?ni? wypowiedz kolegi, funkcja OnPlayerPrivmsg jest ju? wgrana w SA-MP'a nie ca?kowicie usuni?ta. Dlatego nie op?aca Ci si? jej forwardowa? tylko ca?kowicie usun??, tak jak powiedzia? BraYaN.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-22, 16:26


DanyloPL







Wiek: 35
Na forum: 5677 dni
Posty: 3
Nick w MP: DanyloPL

Piwa: 53

Respekt: 50

Prosz? o pomoc z tym errorem

Kod:

C:\Users\AsusPc\Desktop\ptm_by_ramo.pwn(3) : fatal error 100: cannot read from file: "dubd"

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


1 Error.



za pomoc piwko :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-22, 17:02


QaDu







Wiek: 29
Na forum: 5767 dni
Posty: 2
Nick w MP: QaDu



Respekt: 50

DanyloPL, nie masz include dubd

Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-22, 17:08


DanyloPL







Wiek: 35
Na forum: 5677 dni
Posty: 3
Nick w MP: DanyloPL

Piwa: 53

Respekt: 50

QaDu, wiem ?ci?gne?em go i dalej to wyskauje

Wgra?em tego includa i teraz wyskakuje mi

Kod:

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

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


1 Error.


Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-22, 17:11


Robert007







Wiek: 35
Na forum: 6722 dni
Posty: 223

Piwa: 11851

Respekt: 70

To ?ci?gnij "dutils" pisze wyra?nie

Podpis
Jak sie masz
?
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-22, 17:51


DanyloPL







Wiek: 35
Na forum: 5677 dni
Posty: 3
Nick w MP: DanyloPL

Piwa: 53

Respekt: 50

Robert007, ?ci?gn??em wszystkie potrzebne

I oto wynik

Kod:

C:\Users\AsusPc\Desktop\ptm_by_ramo.pwn(4699) : error 027: invalid character constant
C:\Users\AsusPc\Desktop\ptm_by_ramo.pwn(4699) : error 027: invalid character constant
C:\Users\AsusPc\Desktop\ptm_by_ramo.pwn(5639) : error 027: invalid character constant
C:\Users\AsusPc\Desktop\ptm_by_ramo.pwn(5639) : error 027: invalid character constant
C:\Users\AsusPc\Desktop\ptm_by_ramo.pwn(5685) : error 029: invalid expression, assumed zero
C:\Users\AsusPc\Desktop\ptm_by_ramo.pwn(5685) : error 017: undefined symbol "NaStacji"
C:\Users\AsusPc\Desktop\ptm_by_ramo.pwn(5686) : error 029: invalid expression, assumed zero
C:\Users\AsusPc\Desktop\ptm_by_ramo.pwn(5686) : error 017: undefined symbol "NaStacji"
C:\Users\AsusPc\Desktop\ptm_by_ramo.pwn(5847) : warning 225: unreachable code
C:\Users\AsusPc\Desktop\ptm_by_ramo.pwn(5847) : error 029: invalid expression, assumed zero
C:\Users\AsusPc\Desktop\ptm_by_ramo.pwn(5847) : error 017: undefined symbol "bylnastacjit"
C:\Users\AsusPc\Desktop\ptm_by_ramo.pwn(5848) : error 029: invalid expression, assumed zero
C:\Users\AsusPc\Desktop\ptm_by_ramo.pwn(5848) : error 017: undefined symbol "bylnastacjit"
C:\Users\AsusPc\Desktop\ptm_by_ramo.pwn(5851) : error 030: compound statement not closed at the end of file (started at line 4529)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


13 Errors.


Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-22, 18:34


Patriko6b







Wiek: 31
Na forum: 5973 dni
Posty: 2

Piwa: 4

Respekt: 50

Robi?em dzisiaj stref? admina lecz nie wypali?o, dostaje dwa warningi ;/

Kod:

C:\Documents and Settings\Administrator\Pulpit\strefa.pwn(13) : warning 235: public function lacks forward declaration (symbol "ZakazanaStrefa")
C:\Documents and Settings\Administrator\Pulpit\strefa.pwn(24) : warning 235: public function lacks forward declaration (symbol "IsPlayerInArea")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
Kod Pawno:

Kod:

#include <a_samp>
#define COLOR_GREEN 0x33AA33AA

public OnGameModeInit()
{
SetTimer("ZakazanaStrefa", 1000, true);

return 1;
}



public ZakazanaStrefa(){
for(new i; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i)){
if(IsPlayerInArea(i, 815.95385742188,-2050, 899.04711914063,-2107.6076660156) && !IsPlayerAdmin(i)){
SendClientMessage(i, 0xFFFFFFFF, "");
SetPlayerHealth(i, 0.0);
}
}
}
}

public IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy){
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if (x > minx && x < maxx && y > miny && y < maxy) return 1;
return 0;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-22, 18:40


SzoteK

DriftPajace <3






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

Piwa: 747

Respekt: 248
Respekt: 248Respekt: 248

Patriko6b, pod
Kod:

#define COLOR_GREEN 0x33AA33AA

daj takie co?
Kod:

forward IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy);
forward ZakazanaStrefa();


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

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


Robert007







Wiek: 35
Na forum: 6722 dni
Posty: 223

Piwa: 11851

Respekt: 70

DanyloPL, potrzebne linijki..

Podpis
Jak sie masz
?
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-29, 13:46


szeju







Wiek: 30
Na forum: 6353 dni
Posty: 65

Piwa: 327

Respekt: 45,3

Mam problem z mapka


Kod:

C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(102) : warning 209: function "OnGameModeInit" should return a value
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(146) : error 021: symbol already defined: "OnGameModeInit"
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(158) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(160) : warning 225: unreachable code
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(160) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(160) : error 004: function "OnPlayerSpawn" is not implemented
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(163) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(165) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(168) : warning 225: unreachable code
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(168) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(168) : error 004: function "ZmienneWiadomosci" is not implemented
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(190) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(190) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(195) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(197) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(198) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(199) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(200) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(201) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(202) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(203) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(207) : warning 225: unreachable code
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(207) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(209) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(210) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(211) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(212) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(213) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(214) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Szeju12\Pulpit\szeju.pwn(215) : error 017: undefined symbol "playerid"

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


26 Errors.



Linijki od 98 do 174


Kod:

public OnGameModeInit()

//============= ANTY PING =================

SetTimer("AntyPing" ,1000,1); // ANTY PING

forward AntyPing();
public AntyPing()
{
new string[256];
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(enabelcheckping)
{
if(CanPing[i][1] && !CanPing[i][0])
{
CanPing[i][1] = false;
CanPing[i][0] = true;
continue;
}
if(CanPing[i][0])
{
if(GetPlayerPing(i) >= maxping)
{
new Name[MAX_PLAYER_NAME];

GetPlayerName(i, Name, sizeof(Name));
format(string, sizeof(string), "SERVER: %s (ID: %d) Zosta? Wyrzucony. Pow?d: Wysoki Ping", Name, i);
SendClientMessageToAll(COLOR_LIGHTRED, string);
Kick(i);
}
}
}
}
}
}


//============ TEKXTDRAW POD MINIMAPKA ============================

forward ZmienneWiadomosci(playerid);

new Text:UnderMinimap;


public OnGameModeInit()
{
//=========================[ TextDraw ]=======================================
UnderMinimap = TextDrawCreate(33.000000, 423.000000, "_");
TextDrawBackgroundColor(UnderMinimap, 65535);
TextDrawFont(UnderMinimap, 1);
TextDrawLetterSize(UnderMinimap, 0.310000, 0.699999);
TextDrawColor(UnderMinimap, -1);
TextDrawSetOutline(UnderMinimap, 1);
TextDrawSetProportional(UnderMinimap, 1);
TextDrawSetShadow(UnderMinimap, 1);
SetTimer("ZmienneWiadomosci",10000,1);
//==============================================================================
return 1;

public OnPlayerSpawn(playerid)
{

TextDrawShowForPlayer(playerid,UnderMinimap);

return true;
}

public ZmienneWiadomosci(playerid)
{
TextDrawSetString(UnderMinimap, RandMessages[random(sizeof(RandMessages))]);
}


// ======================= KONIEC TEKSTDRAWU ===================

Na gorze mam

new RandMessages[][] = {
"zapraszamy na forum : "forum"",
"Pamietaj CHEATY = BAN !"
};


Linijki od 190 do 203

Kod:

public OnPlayerCommandText(playerid, cmdtext[])
{



if(strcmp(cmd, "/help", true) == 0 || strcmp(cmd, "/pomoc", true) == 0 || strcmp(cmd, "/p", true) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW,"* tekst");
SendClientMessage(playerid, COLOR_GREEN,"* tekst");
SendClientMessage(playerid, COLOR_GREEN,"tekst");
SendClientMessage(playerid, COLOR_GREEN,"tekst");
SendClientMessage(playerid, COLOR_GREEN,"tekst");
SendClientMessage(playerid, COLOR_YELLOW,"tekst);
return 1;


od 207 do 219

Kod:

if (strcmp("/cmd", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW,"* Oto dostepne komendy:");
SendClientMessage(playerid, COLOR_GREEN,"/komenda"); // V
SendClientMessage(playerid, COLOR_GREEN,"/komenda"); // V
SendClientMessage(playerid, COLOR_GREEN,"/komenda");//V
SendClientMessage(playerid, COLOR_GREEN,"/komenda"); //V
SendClientMessage(playerid, COLOR_GREEN,"/komenda");
SendClientMessage(playerid, COLOR_GREEN,"/komenda"); //V
SendClientMessage(playerid, COLOR_GREEN,"/komenda");
SendClientMessage(playerid, COLOR_GREEN,"/komenda");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Aby zobaczyc dalszy ciag komend wpisz /cmd2");
return 1;

( w "/komenda" mam swoje komendy )


Podpis
piatek.tosiewytnie.pl/i,Piatek-The-Series-s04e02,vid,34221,index.html
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-30, 08:37


Pacio_Caverutti

Rollin' and hejtaz.






Wiek: 29
Na forum: 6418 dni
Posty: 37
Nick w MP: Delight

Piwa: 1363

Respekt: 61,1

Dobra, kr?tko i zwi??le. Wyskakuj? mi takie errory:
Kod:


C:\DOCUME~1\MICHA~1\Pulpit\Untitled.pwn(71) : error 010: invalid function or declaration
C:\DOCUME~1\MICHA~1\Pulpit\Untitled.pwn(73) : error 010: invalid function or declaration
C:\DOCUME~1\MICHA~1\Pulpit\Untitled.pwn(77) : error 010: invalid function or declaration
C:\DOCUME~1\MICHA~1\Pulpit\Untitled.pwn(79) : error 010: invalid function or declaration
C:\DOCUME~1\MICHA~1\Pulpit\Untitled.pwn(81) : error 010: invalid function or declaration
C:\DOCUME~1\MICHA~1\Pulpit\Untitled.pwn(84) : error 010: invalid function or declaration
C:\DOCUME~1\MICHA~1\Pulpit\Untitled.pwn(86) : error 010: invalid function or declaration
C:\DOCUME~1\MICHA~1\Pulpit\Untitled.pwn(88) : error 010: invalid function or declaration
C:\DOCUME~1\MICHA~1\Pulpit\Untitled.pwn(90) : error 010: invalid function or declaration
C:\DOCUME~1\MICHA~1\Pulpit\Untitled.pwn(92) : error 010: invalid function or declaration
C:\DOCUME~1\MICHA~1\Pulpit\Untitled.pwn(94) : error 010: invalid function or declaration
C:\DOCUME~1\MICHA~1\Pulpit\Untitled.pwn(96) : error 010: invalid function or declaration
C:\DOCUME~1\MICHA~1\Pulpit\Untitled.pwn(98) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


13 Errors.


Ale ja nic w mapie praktycznie nie robi?em, pr?cz dodania kilku linijek kodu. Mo?e co? jest ?le? Prosz? o odpowied?.

Kod:

if(strcmp(cmd, "/cmd", true) == 0 || strcmp(cmd, "/komendy", true) == 0) {
ShowPlayerDialog(playerid, 6, 0, "* Spis Komend: /komendy1 (Spis dalszych komend), /teleporty(1-4) (Wszystkie teleporty), /komendyadmina (tylko dla administracji!). ***Koniec Komend***", "OK", "Anuluj");
return 1;
}


if(strcmp(cmd, "/cmd1", true) == 0 || strcmp(cmd, "/komendy1", true) == 0) {
ShowPlayerDialog(playerid, 7, 0, "* Spis komend:*", "/pm [ID] [Tre??], /hp, /kamizelka, /bronie, /auta, /animacje, /tune, /napraw . ***Koniec Komend***", "OK", "Anuluj");
return 1;
}
if(strcmp(cmd, "/teles", true) == 0 || strcmp(cmd, "/teleporty", true) == 0) {
ShowPlayerDialog(playerid, 8, 0, "* Spis teleport?w*:" "/stunt-lv, /zjazd.lv, /lv, /sf, /ls, /tune-lv, /tune-sf, /tune-ls, /lv-lot, /sf-lot, /ls-lot ***Koniec Komend***", "OK", "Anuluj");
}
if(strcmp(cmd, "/teles2", true) == 0 || strcmp(cmd, "/teleporty2", true) == 0) {
ShowPlayerDialog(playerid, 8, 0, "* Spis teleport?w 2:*", "/pustynia, /skate.park, /tama, /chillad(g?ra w sf), /port, /port2, /kopalnia, /bagno ***Koniec Komend***", "OK", "Anuluj");
return 1;
}
if(strcmp(cmd, "/teles3", true) == 0 || strcmp(cmd, "/teleporty3", true) == 0) {
ShowPlayerDialog(playerid, 13, 0, "* Spis teleport?w 3:*", "/plaza, /plaza2, /party, /tram, /g2, /wieza, /piramida, /4smoki, /wies, /statek ***Koniec Komend***", "OK", "Anuluj");
return 1;
}
if(strcmp(cmd, "/teles4", true) == 0 || strcmp(cmd, "/teleporty4", true) == 0) {
ShowPlayerDialog(playerid, 13, 0, "* Spis teleport?w 4*:", "/bus, /golf, /wojsko, /fabryka, /minigun, /disco, /dirtyrace, /wyspa ***Koniec Komend***", "Ok", "Anuluj");
return 1;
}
{ if(strcmp(cmd, "/admincmd", true) == 0 || strcmp(cmd, "/komendyadmina", true) == 0) {
ShowPlayerDialog(playerid, 13, 0, "* Spis komend*", "/acmd, /pogoda, /startch, /gb.c|c, /baza.o|c, /awinda.g|d, /ws.o|c, /dach.o|c, /dach2.o|c, /walizka, /startWG, /whHelp***Koniec Komend***", "Ok", "Anuluj");
return 1;
}


Podpis


Pomogłem? Daj piwo lub punkt reputacji. :)
-= Gie eR U Be eS O eN =-
Postaw piwo autorowi tego posta
 

 
Wysłany: 2010-12-30, 17:50


kosa12505







Wiek: 30
Na forum: 6184 dni
Posty: 16
Nick w MP: [PSZ]Kosa/RKD

Piwa: 2445

Respekt: 50

Ostrzeżeń: 20%
error 049: invalid line continuation

To m?j err gdy dodaj? pojazdy
AddStaticVehicle..

Nie rozumiem, help ;p

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