Wysłany: 2013-09-13, 17:23
Cracku
Wiek: 35 Na forum: 5408 dni Posty: 26
Mam problem z takimi b??dami jak:
Kod: pawno\include\strtok.inc(12) : error 021: symbol already defined: "strtok"
pawno\include\strtok.inc(27) : error 047: array sizes do not match, or destination array is too small
Speedv2.pwn(2169) : error 017: undefined symbol "strrest"
Speedv2.pwn(2169) : error 033: array must be indexed (variable "tmp")
Moj strtok.inc:
Kod: /*
* strtok
*
*/
#if defined _strtok_include
#endinput
#endif
#define _strtok_included
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;
}
A teraz linijki z b??dem w GM'ie:
Kod: if(strcmp(cmd, "/pm", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Bialy, "U?yj: /pm [playerid] [text]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strrest(cmdtext,idx); //tutaj jest b??d! - linia 2169
if(!strlen(tmp)) {
SendClientMessage(playerid, Bialy, "U?yj: /pm [playerid] [text]");
return 1;
}
if (IsPlayerConnected(giveplayerid)) {
format(string, sizeof(string), "PM do %s(ID: %d).", PlayerName(giveplayerid),giveplayerid);
SendClientMessage(playerid, Zolty, string);
format(string, sizeof(string), "PM od: %s(ID: %d).", PlayerName(playerid), playerid);
SendClientMessage(giveplayerid, Zolty, string);
format(string, sizeof(string), "Tre??: %s", tmp);
SendClientMessage(giveplayerid, Zolty, string);
}else{
format(string, sizeof(string), "%d Nie ma takiego id!", giveplayerid);
SendClientMessage(playerid, Czerwony, string);
}
return 1;
}
Wysłany: 2013-09-13, 17:32
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Cracku , 1 Error- Ju? masz gdzie? zdefiniowany strtok.
3. Error- Dodaj na ko?cu mapy takie co?:
Kod:
stock strrest(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[128];
while ((index < length) && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
4 Error- Poka? jak zdefiniowa?e? zmienn? tmp.
Wysłany: 2013-09-13, 17:35
Cracku
Wiek: 35 Na forum: 5408 dni Posty: 26
A jak znajd? gdzie jest to zdefiniowane?
Wysłany: 2013-09-13, 17:38
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Cracku , W programie pawno kliknij: CTRL + F i wpisz tam w wyszukiwanie:
"new tmp" lub "tmp"
Wysłany: 2013-09-13, 17:47
Cracku
Wiek: 35 Na forum: 5408 dni Posty: 26
Dwa razy wyst?puje u mnie:
"new tmp[256];"
ale jak to usun? to mam kolejne b??dy ?e nie zdefiniowa?em tego.
Przyk?ad:
Speedv2.pwn(4586) : error 017: undefined symbol "tmp"
a samych "tmp" te? mam pe?no.
A b??d includa nadal nie znika.
Dodam jeszcze, ?e na tym GM'ie pracowa?em ju? od d?u?szego czasu (ucz? si? na nim PAWN) i nigdy ten b??d nie wyst?powa?.
Wysłany: 2013-09-13, 17:49
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Cracku , A w jakim callbacku masz to zdefiniowane ? Czy gdzie? luzem ?
Wysłany: 2013-09-13, 17:59
Cracku
Wiek: 35 Na forum: 5408 dni Posty: 26
W GM'ie te
"new tmp[256];"
mam a b??d mam w include nie wiem czemu.
Wysłany: 2013-09-13, 18:09
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Wysłany: 2013-09-13, 18:15
Cracku
Wiek: 35 Na forum: 5408 dni Posty: 26
Dobra ju? sobie poradzi?em - dzi?ki!
Wysłany: 2013-09-17, 10:23
EMILOS123
Wiek: 28 Na forum: 5449 dni Posty: 219
Nick w MP: Emilos
Piwa : 128
Kod: C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28498) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28499) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28500) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28501) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28502) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28503) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28504) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28505) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28506) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28507) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28508) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28509) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28510) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28511) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28512) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28530) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28531) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28532) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28533) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28534) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28535) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28536) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28537) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28538) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28539) : error 047: array sizes do not match, or destination array is too small
C:\Users\Kamil\Desktop\pawno\mapy\Kopia1.2v.pwn(28540) : error 047: array sizes do not match, or destination array is too small
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Mog? liczy? na wasz? pomoc? Stawiam 5
[ Dodano : 2013-09-17, 10:48 ]
Problem naprawiony, po prostu mia?em z?e include.
Wysłany: 2013-09-21, 18:01
VisztaPL
Producent Muzyczny
Wiek: 29 Na forum: 5175 dni Posty: 57
Nick w MP: VisztaPL
Piwa : 461
Podaj kod w tym miejscu, w kt?rym s? te b??dy.
Wysłany: 2013-10-07, 16:50
koksos
Wiek: 32 Na forum: 4768 dni Posty: 11
Co tutaj mo?e by? ?le bo nie pojawia mi si? ranga nad g?ow?
new Text3D:PlayerLabel[MAX_PLAYERS];
forward PlayerLabelOff(playerid);
public PlayerLabelOff(playerid)
{
if(IsPlayerAdmin(playerid)){
new string[150];
format(string,sizeof(string),"\n**HeadAdmin**");
Update3DTextLabelText(PlayerLabel[playerid], C_ERROR, string);
return 1;
}
if(Player[playerid][Admin1]){
new string[150];
format(string,sizeof(string),"\n*Administrator 1 lvl*");
Update3DTextLabelText(PlayerLabel[playerid], C_ERROR, string);
return 1;
}
if(Player[playerid][Admin2]){
new string[150];
format(string,sizeof(string),"\n*Administrator 2 lvl*");
Update3DTextLabelText(PlayerLabel[playerid], C_ERROR, string);
return 1;
}
if(Player[playerid][Mod]){
new string[150];
format(string,sizeof(string),"\n*Moderator*");
Update3DTextLabelText(PlayerLabel[playerid], C_GREEN, string);
return 1;
}
if(Player[playerid][Vip]){
new string[150];
format(string,sizeof(string),"\n*VIP*");
Update3DTextLabelText(PlayerLabel[playerid], C_YELLOW, string);
return 1;
}
Co tutaj mo?e by? ?le nie pojawia mi si? nad g?ow? ranga???
Wysłany: 2013-11-07, 13:50
Adwokado
Wiek: 29 Na forum: 4598 dni Posty: 89
Jak to naprawi??
Kod: :\Users\maciek\Desktop\Asa.pwn(239) : error 017: undefined symbol "mS_INVALID_LISTID"
C:\Users\maciek\Desktop\Asa.pwn(239) : error 008: must be a constant expression; assumed zero
C:\Users\maciek\Desktop\Asa.pwn(240) : error 017: undefined symbol "mS_INVALID_LISTID"
C:\Users\maciek\Desktop\Asa.pwn(240) : error 008: must be a constant expression; assumed zero
C:\Users\maciek\Desktop\Asa.pwn(1077) : warning 217: loose indentation
C:\Users\maciek\Desktop\Asa.pwn(1078) : warning 217: loose indentation
C:\Users\maciek\Desktop\Asa.pwn(1083) : warning 217: loose indentation
C:\Users\maciek\Desktop\Asa.pwn(1086) : warning 217: loose indentation
C:\Users\maciek\Desktop\Asa.pwn(1087) : warning 217: loose indentation
C:\Users\maciek\Desktop\Asa.pwn(1093) : warning 217: loose indentation
C:\Users\maciek\Desktop\Asa.pwn(1094) : warning 217: loose indentation
C:\Users\maciek\Desktop\Asa.pwn(1114) : warning 217: loose indentation
C:\Users\maciek\Desktop\Asa.pwn(3409) : warning 235: public function lacks forward declaration (symbol "OnPlayerModelSelection")
C:\Users\maciek\Desktop\Asa.pwn(3442) : error 017: undefined symbol "LoadModelSelectionMenu"
C:\Users\maciek\Desktop\Asa.pwn(3443) : error 017: undefined symbol "LoadModelSelectionMenu"
C:\Users\maciek\Desktop\Asa.pwn(3494) : error 037: invalid string (possibly non-terminated string)
C:\Users\maciek\Desktop\Asa.pwn(3494) : error 017: undefined symbol "mapname"
C:\Users\maciek\Desktop\Asa.pwn(3494) : error 017: undefined symbol "DM"
C:\Users\maciek\Desktop\Asa.pwn(3494) : fatal error 107: too many error messages on one line
Compilation gtaonline compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
O co chodzi? wyskakuje to gdy chce mapke do amx wziac w pawno
oczywiscie po zmianie (zmiana nazwy forum itd)
Wysłany: 2013-11-07, 17:00
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Wysłany: 2013-11-07, 17:08
Adwokado
Wiek: 29 Na forum: 4598 dni Posty: 89
Niestety, nie moge sie zarejstrowa? aby to pobra?...
Sorry, we are unable to register your account at this time.
Czekam i czekam i nic.
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: