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

Wysłany: 2012-07-21, 17:01


flooo







Wiek: 36
Na forum: 5116 dni
Posty: 9
Nick w MP: Flooo

Piwa: 450

Respekt: 50

Ostrzeżeń: 100%
Mam takie errory i co mam zrobic?




C:\Documents and Settings\Justyna\Desktop\Pawno\include\kolory.inc(28) : warning 201: redefinition of constant/macro (symbol "COLOR_BLACK")
C:\Documents and Settings\Justyna\Desktop\Pawno\include\kolory.inc(40) : warning 201: redefinition of constant/macro (symbol "COLOR_VIOLET")
C:\Documents and Settings\Justyna\Desktop\Pawno\include\kolory.inc(64) : warning 201: redefinition of constant/macro (symbol "COLOR_LIGHTGREEN")
C:\Documents and Settings\Justyna\Desktop\Pawno\include\kolory.inc(67) : warning 201: redefinition of constant/macro (symbol "COLOR_DARKGREEN")
C:\Documents and Settings\Justyna\Desktop\Pawno\include\kolory.inc(68) : warning 201: redefinition of constant/macro (symbol "COLOR_DARKBLUE")
C:\Documents and Settings\Justyna\Desktop\Pawno\include\kolory.inc(69) : warning 201: redefinition of constant/macro (symbol "COLOR_DARKRED")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


6 Warnings.





jesli to include to mam kolory ale i tak nie dziala pomocy???

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-21, 17:29


Carlli







Wiek: 30
Na forum: 5084 dni
Posty: 695

Piwa: 2486

Respekt: 197
Respekt: 197Respekt: 197

Mo?e po prostu zaktualizuj te include ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-21, 17:40


flooo







Wiek: 36
Na forum: 5116 dni
Posty: 9
Nick w MP: Flooo

Piwa: 450

Respekt: 50

Ostrzeżeń: 100%
jak?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-21, 17:52


Carlli







Wiek: 30
Na forum: 5084 dni
Posty: 695

Piwa: 2486

Respekt: 197
Respekt: 197Respekt: 197

Pobierz z t?d na pewno co? znajdziesz.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-21, 18:03


flooo







Wiek: 36
Na forum: 5116 dni
Posty: 9
Nick w MP: Flooo

Piwa: 450

Respekt: 50

Ostrzeżeń: 100%
Nic tu nie ma a wyslalbys? jak mozesz?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-21, 18:07


Carlli







Wiek: 30
Na forum: 5084 dni
Posty: 695

Piwa: 2486

Respekt: 197
Respekt: 197Respekt: 197

poszukaj w Google .

Wpisz : kolory.inc 0.3e download .

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-21, 18:10


flooo







Wiek: 36
Na forum: 5116 dni
Posty: 9
Nick w MP: Flooo

Piwa: 450

Respekt: 50

Ostrzeżeń: 100%
nie ma....

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-21, 18:21


Carlli







Wiek: 30
Na forum: 5084 dni
Posty: 695

Piwa: 2486

Respekt: 197
Respekt: 197Respekt: 197

Jak nie ma jak jest minuta szukania .

Prosze :

Ukryta wiadomość / Hidden message(aby ją zobaczyć musisz postawić użytkownikowi)
Wiadomość została ukryta, aby ją przeczytać należy się zalogować.


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-21, 18:37


flooo







Wiek: 36
Na forum: 5116 dni
Posty: 9
Nick w MP: Flooo

Piwa: 450

Respekt: 50

Ostrzeżeń: 100%
nadal mam te warningi.. C:\Documents and Settings\Justyna\Desktop\Pawno\include\kolory.inc(28) : warning 201: redefinition of constant/macro (symbol "COLOR_BLACK")
C:\Documents and Settings\Justyna\Desktop\Pawno\include\kolory.inc(40) : warning 201: redefinition of constant/macro (symbol "COLOR_VIOLET")
C:\Documents and Settings\Justyna\Desktop\Pawno\include\kolory.inc(64) : warning 201: redefinition of constant/macro (symbol "COLOR_LIGHTGREEN")
C:\Documents and Settings\Justyna\Desktop\Pawno\include\kolory.inc(67) : warning 201: redefinition of constant/macro (symbol "COLOR_DARKGREEN")
C:\Documents and Settings\Justyna\Desktop\Pawno\include\kolory.inc(68) : warning 201: redefinition of constant/macro (symbol "COLOR_DARKBLUE")
C:\Documents and Settings\Justyna\Desktop\Pawno\include\kolory.inc(69) : warning 201: redefinition of constant/macro (symbol "COLOR_DARKRED")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


6 Warnings.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-21, 21:46


Cz3chu

Szary człowiek






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

Piwa: 174

Respekt: 54,3

Warningi kolor?w, musisz je zmieni? na te co masz wy?ej definicje na g?rze mapy.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-23, 10:41


Trix







Wiek: 28
Na forum: 5066 dni
Posty: 2
Nick w MP: Trix



Respekt: 50

A ja mam problem z kompilacj? mapy. Poni?ej warning?w pisze mi Pawn Compiler a nie ma nigdzie tej mapy w wersji .amx. Pomo?ecie?
Tutaj SS:


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-25, 21:02


GaCeL







Wiek: 33
Na forum: 5593 dni
Posty: 197
Nick w MP: GaCeL

Piwa: 96

Respekt: 45,3

mam taki b??d

Kod:

C:\Documents and Settings\?ukasz\Pulpit\Moja Mapa.pwn(596) : error 017: undefined symbol "Create3DTextLabel"


oto linijka:

Kod:

Create3DTextLabel("----> Kopalnia------> 2 km",COLOR_LIGHTGREEN, 240.0871, 946.7314, 26.5773,45.0,0);



Pomocy Ju? Kupi?em :piwo:

[ Dodano: 2012-07-25, 21:03 ]
Panie Up
Kod:

#new strrest;


i jescze dodaj
Kod:

#new string;


Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-29, 17:40


Rumun







Wiek: 30
Na forum: 5235 dni
Posty: 316
Nick w MP: Rumun

Piwa: 25

Respekt: 69

...Nprawione

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-30, 21:23


Pro-reklamowiec

Robię to co Lubię






Wiek: 32
Na forum: 5100 dni
Posty: 23
Nick w MP: Hardkor

Piwa: 9

Respekt: 50

A ja mam taki problem ?e gang mi si? nie zapisuje jak zrobi? gang i jestem na serwie to jest git ale jak wyjd? z serwera i wejd? to ju? nie ma gangu :( jak kto? pomo?e to zimne piwko :piwo:
Kod:

COMMAND:gang(playerid, params[])
{
new Func[255], String[255], idx;
Func = StrToLower(strtok(params, idx));

if(MyStrCmp(Func, "create"))
{
String = strrest(params, idx);
if(strlen(String) < 1)
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Wpisz: /gang create [nazwa gangu]");
return 1;
}

if(strlen(String) < 2)
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Nazwa gangu jest za kt?tka. Min. 2 znaki.");
return 1;
}

if(strlen(String) > 16)
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Nazwa gangu jest za d?uga. Max. 16 znak?w.");
return 1;
}

if(Player[playerid][Gangster] != -1)
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Jeste? ju? w innym gangu. By go opu?ci? wpisz /gang exit");
return 1;
}

if(Player[playerid][MGang])
MGangQuit(playerid);

if(Player[playerid][NGang])
NGangQuit(playerid);

new nGang = CreateGang(String, playerid);
if(nGang == -1)
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Wyst?pi? b??d w tworzeniu gangu.");
return 1;
}

new Success[255];
format(Success, sizeof(Success), " (info) Gang %s zosta? utworzony. Wpisz /gang invite [id gracza] by kogo? zaprosi?.", String);
SendClientMessage(playerid, COLOR_GANG, Success);
return 1;
}
else if(MyStrCmp(Func, "invite"))
{
if(Player[playerid][Gangster] == -1)
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Nie jeste? w gangu.");
return 1;
}

String = strtok(params, idx);
if(!isNumeric(String) || strlen(String) < 1)
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Wpisz: /gang invite [id gracza]");
return 1;
}

new PlayerId = strval(String);

if(!IsPlayerConnected(PlayerId))
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Nie ma takiego gracza.");
return 1;
}

if(Player[PlayerId][Gangster] != -1)
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Ten gracz jest ju? w innym gangu.");
return 1;
}

new GangId = Player[playerid][Gangster];
Gang[GangId][Invited][PlayerId] = true;
new Success[255];
format(Success, sizeof(Success), " (info) Zaproszenie zosta?o wys?ane do %s.", Player[PlayerId][Name]);
SendClientMessage(playerid, COLOR_GANG, Success);
format(Success, sizeof(Success), " (info) Gracz %s zaprasza Ci? go gangu %s. Je?li chcesz do??czy? wpisz /gang join %d", Player[playerid][Name], Gang[GangId][Name], GangId);
SendClientMessage(PlayerId, COLOR_GANG, Success);
return 1;
}
else if(MyStrCmp(Func, "join"))
{
String = strtok(params, idx);
if(!isNumeric(String) || strlen(String) < 1)
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Wpisz: /gang join [id gangu]");
return 1;
}

new GangId = strval(String);
if(GangId < 0 || GangId >= MAX_GANGS)
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Nie zosta?e? zaproszony do tego gangu.");
return 1;
}

if(!Gang[GangId][Invited][playerid])
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Nie zosta?e? zaproszony do tego gangu.");
return 1;
}

if(Player[playerid][Gangster] != -1)
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Jeste? ju? w innym gangu. By go opu?ci? wpisz /gang exit");
return 1;
}

if(Player[playerid][MGang])
MGangQuit(playerid);

if(Player[playerid][NGang])
NGangQuit(playerid);

PlayerJoinGang(playerid, GangId);
new Success[255];
format(Success, sizeof(Success), " (info) Do??czy?e?/a? do gangu %s.", Gang[GangId][Name]);
SendClientMessage(playerid, COLOR_GANG, Success);
SendClientMessage(playerid, COLOR_GANG, " (info) Mo?esz porozumiewa? si? ze swoim gangiem. Wystarczy ?e przez wiadomo?ci? dodasz znak \"!\". Na przyk?ad !siema ziomcy");
format(Success, sizeof(Success), " (info) %s (id %d) do??czy? do gangu.", Player[playerid][Name], playerid);
SendClientMessageToGang(GangId, Success);
return 1;
}
else if(MyStrCmp(Func, "exit") || MyStrCmp(Func, "quit"))
{
if(Player[playerid][Gangster] == -1)
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Nie jeste? w gangu.");
return 1;
}

new GangId = Player[playerid][Gangster];
PlayerExitGang(playerid);
new Success[255];
format(Success, sizeof(Success), " (info) Opu?ci?e?/a? gang %s.", Gang[GangId][Name]);
SendClientMessage(playerid, COLOR_GANG, Success);
format(Success, sizeof(Success), " (info) %s (id %d) opu?ci? gang.", Player[playerid][Name], playerid);
SendClientMessageToGang(playerid, Success);
return 1;
}
else if(MyStrCmp(Func, "info"))
{
if(Player[playerid][Gangster] == -1)
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Nie jeste? w gangu.");
return 1;
}

new GangId = Player[playerid][Gangster];
new Success[255];
format(Success, sizeof(Success), " (info) Informacje o gangu %s.", Gang[GangId][Name]);
SendClientMessage(playerid, COLOR_GREEN, Success);
format(Success, sizeof(Success), " Stan konta: %d$", Gang[GangId][BankMoney]);
SendClientMessage(playerid, COLOR_GREY, Success);

new PlayersInGang = 0;
format(Success, sizeof(Success), " Cz?onkowie:");
for(new PlayerId = 0; PlayerId < MAX_PLAYERS; PlayerId++)
{
if(IsPlayerConnected(PlayerId) && Player[PlayerId][Gangster] == GangId)
{
PlayersInGang++;
format(Success, sizeof(Success), "%s %s (id %d),", Success, Player[PlayerId][Name], PlayerId);
}
if((strlen(Success) > 90 || PlayerId == (MAX_PLAYERS-1)) && PlayersInGang > 0)
{
SendClientMessage(playerid, COLOR_GREY, Success);
format(Success, sizeof(Success), "");
}
}
return 1;
}
else
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Wpisz: /gang [\"create\" / \"invite\" / \"join\" / \"info\" / \"exit\"]");
return 1;
}
}

stock CreateGang(GangName[255], Master)
{
for(new GangId = 0; GangId < MAX_GANGS; GangId++)
{
if(Gang[GangId][Players] < 1)
{
format(Gang[GangId][Name], sizeof(GangName), "%s", GangName);
for(new PlayerId = 0; PlayerId < MAX_PLAYERS; PlayerId++)
Gang[GangId][Invited][PlayerId] = false;
Gang[GangId][Players] = 1;
Gang[GangId][BankMoney] = 0;
Player[Master][Gangster] = GangId;
Gang[GangId][Color] = GetPlayerColor(Master);
return GangId;
}
}
return -1;
}

SendClientMessageToGang(GangId, Text[])
{
new MColor;
if(GangId == MGANG)
MColor = COLOR_RASPBERRY;
else if(GangId == NGANG)
MColor = COLOR_NGANG;
else
MColor = COLOR_GANG;
for(new PlayerId = 0; PlayerId < MAX_PLAYERS; PlayerId++)
if(IsPlayerConnected(PlayerId) && (Player[PlayerId][Gangster] == GangId || (GangId == MGANG && Player[PlayerId][MGang]) || (GangId == NGANG && Player[PlayerId][NGang])))
SendClientMessage(PlayerId, MColor, Text);
}

PlayerJoinGang(PlayerId, GangId)
{
Player[PlayerId][Gangster] = GangId;
SetPlayerColor(PlayerId, Gang[GangId][Color]);
Gang[GangId][Players]++;
Gang[GangId][Invited][PlayerId] = false;
}

PlayerExitGang(PlayerId)
{
new GangId = Player[PlayerId][Gangster];
Player[PlayerId][Gangster] = -1;
SetPlayerColor(PlayerId, Player[PlayerId][Color]);
Gang[GangId][Players] = GetPlayersInGang(GangId);
Gang[GangId][Invited][PlayerId] = false;
}

stock GetPlayersInGang(GangId)
{
new Count;
for(new PlayerId = 0; PlayerId < MAX_PLAYERS; PlayerId++)
if(IsPlayerConnected(PlayerId) && Player[PlayerId][Gangster] == GangId)
Count++;
return Count;
}


Podpis
International Road Truck

Zapraszamy

IP: 213.189.52.62:7791
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-30, 23:17


Adasek000







Wiek: 32
Na forum: 5698 dni
Posty: 63
Nick w MP: Shaggy_Manley

Piwa: 16

Respekt: 20,9

@UP Nie jestem pewien, bo przejrza?em kod na szybko, ale z tego co mi si? zdaje nie masz funkcji zapisuj?cej gang i gracza w nim.

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