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

Wysłany: 2011-04-21, 12:57


KoLoSs

www.pKoLoSs.tk






Wiek: 31
Na forum: 5631 dni
Posty: 109
Nick w MP: KoLoSs

Piwa: 593

Respekt: 55,1

Ostrzeżeń: 20%
najlepiej u?yj tego :
www.licznik.gtaonline.pl
wklej kod i klik na 'wy?lij'


licznik . pawn o . pl
co? przerabia tekst ; d

[ Dodano: 2011-04-21, 13:07 ]
tak wi?c..
w:
Pawn

public OnPlayerKeyStateChange(playeridnewkeysoldkeys)

mam:
Pawn

    if((newkeys KEY_FIRE) && !(oldkeys KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
    else if ((oldkeys KEY_FIRE) && !(newkeys KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1010);
    return 1;
}

a mam :
Pawn

(2499) : error 010invalid function or declaration
(2502) : error 010invalid function or declaration
(2504) : error 010invalid function or declaration

PeeS: to jest w mapie..
nad tym s? funkcje z GUI..

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-04-21, 13:27


xqz

otaku desu!






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

Piwa: 5465

Respekt: 418,6
Respekt: 418,6

"KoLoSs" napisał/a:

if((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); else if((oldkeys & KEY_FIRE) && !(newkeys & KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1010); return 1; }

A gdzie klamra otwierajaca?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-04-21, 13:40


KoLoSs

www.pKoLoSs.tk






Wiek: 31
Na forum: 5631 dni
Posty: 109
Nick w MP: KoLoSs

Piwa: 593

Respekt: 55,1

Ostrzeżeń: 20%
o to chodzi ?e nie da?em :p

[ Dodano: 2011-04-21, 13:41 ]
znaczy. wstawia?em za if.. ale i tak jest jak by?o. .
pr?bowa?em ju? pare miejsc..

Podpis
coś dla uczących się pawn! moje prace, z dnia na dzień coś nowego. !

www.pKoLoSs.tk
+ reklama w stopce strony.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-04-21, 13:42


xqz

otaku desu!






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

Piwa: 5465

Respekt: 418,6
Respekt: 418,6

KoLoSs, to problem rozwiazales czy nie, bo sie zaklopotalem xD

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-04-21, 13:45


Robertson







Wiek: 27
Na forum: 5625 dni
Posty: 3
Nick w MP: xXxRobertxXx2



Respekt: 50

Mo?e da? mi kto? link do licznika klamr by Robert007

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-04-21, 13:50


KoLoSs

www.pKoLoSs.tk






Wiek: 31
Na forum: 5631 dni
Posty: 109
Nick w MP: KoLoSs

Piwa: 593

Respekt: 55,1

Ostrzeżeń: 20%
Cytat:

KoLoSs, to problem rozwiazales czy nie, bo sie zaklopotalem xD

nie rozwi?za?em :p
bo za if jak wstawi?em klamre to nic z tego nei wysz?o..
wygl?da to tak:
Pawn

//Nitro
    if((newkeys KEY_FIRE) && !(oldkeys KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
    else if ((oldkeys KEY_FIRE) && !(newkeys KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1010);
        return 1;
}

Cytat:


Mo?e da? mi kto? link do licznika klamr by Robert007

tu masz lepszy:
Kod:

www.licznik. pawn o . pl

PS:spacje da?em bo napis pawn o zamienia na gtaonline

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-04-21, 13:56


xqz

otaku desu!






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

Piwa: 5465

Respekt: 418,6
Respekt: 418,6

KoLoSs, to gdzies indziej masz chyba porabane. Uzyj licznika Robota, bo pokazuje gdzie mniej wiecej jest blad.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-04-21, 14:00


KoLoSs

www.pKoLoSs.tk






Wiek: 31
Na forum: 5631 dni
Posty: 109
Nick w MP: KoLoSs

Piwa: 593

Respekt: 55,1

Ostrzeżeń: 20%

naprawi?em!. .
usun??em klamre z funkcji obok.


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-04-26, 16:22


Takuro_Liang

Uczeń PAWNO






Wiek: 32
Na forum: 6545 dni
Posty: 16

Piwa: 93

Respekt: -10

Kod:


pwn(7682) : error 001: expected token: "-string end-", but found "-identifier-"
pwn(7682) : error 001: expected token: ";", but found "-string-"
pwn(11635) : error 032: array index out of bounds (variable "Faction")
pwn(11637) : error 032: array index out of bounds (variable "Faction")
pwn(11640) : error 032: array index out of bounds (variable "Faction")
pwn(11642) : error 032: array index out of bounds (variable "Faction")
pwn(12951) : error 017: undefined symbol "Order"
pwn(12951) : error 001: expected token: ";", but found "]"
pwn(12951) : error 029: invalid expression, assumed zero
pwn(12951) : fatal error 107: too many error messages on one line


7682:
Kod:

format(str, sizeof(str), "INSERT INTO `1orders` (`orType`, `orValue1`, `orPrice`, `orOwnerType`, `orOwner`, `orName`) VALUE ('"ORD_TYP_VEH"', '%d', '%d', '%d', '%s')", strval(inputtext),


11635
Kod:

if(Faction[GetPlayerFraction(playerid)][ooc] == 0)

A Tu wi?kszy fragment kodu dot. 11635:
Kod:

else if(!strcmp(type, "ooc", true))
{
if(IsFractionLeader(playerid, PlayerInfo[playerid][frac]))
{
if(Faction[GetPlayerFraction(playerid)][ooc] == 0)
{
Faction[GetPlayerFraction(playerid)][ooc] = 1;
SendClientMessage(playerid, SZARY, "Wy?aczy?e? czat frakcyjny.");
}
else if(Faction[GetPlayerFraction(playerid)][ooc] == 1)
{
Faction[GetPlayerFraction(playerid)][ooc] = 0;
SendClientMessage(playerid, SZARY, "W?aczy?e? czat frakcyjny.");
}
}
else SendClientMessage(playerid, SZARY, "Nie jeste? liderem biznesu.");
}


12951
Kod:

if(Order[orderid][orUID] != 0)

Wi?ksza cz??? kodu 12951:
Kod:

cmd(zamowienia, playerid, cmdtext[])
{
if(Business[GetPlayerBusiness(playerid)][typed] == BUSINESS_LOGISTIC) return SendClientMessage(playerid, SZARY, "Nie pracujesz w firme logistycznej!");
new list_orders[1026], i = 0;
foreachEx(orderid, MAX_ORDERS)
{
if(Order[orderid][orUID] != 0)
{
if(Order[orderid][orStatus] == STATUS_NONE || Order[orderid][orStatus] == STATUS_WHOLESALE)
{
if(Order[orderid][orOwnerType] == OWNER_BUSINESS) format(list_orders, sizeof(list_orders), "%s%d\t%s\n", list_orders, Order[orderid][orUID], Business[Order[orderid][orOwner]][desc]);
if(Order[orderid][orOwnerType] == OWNER_ORGANISATION) format(list_orders, sizeof(list_orders), "%s%d\t%s\n", list_orders, Order[orderid][orUID], Org[Order[orderid][orOwner]][desc]);
i++;
}
}
}
if(i == 0) return Info(playerid, "{FFFFFF}"servname" » Zam?wienia{FFFFFF}", "Nie ma ?adnych zam?wie?.");
ShowPlayerDialog(playerid, DIALOG_SELECT_ORDER, DIALOG_STYLE_LIST, "Lista zam?wie?", list_orders, "Zaznacz", "Anuluj");
return 1;
}


Podpis
~~|*|Pomagam na GG i PW|*|~~
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-04-26, 17:42


adrian_pl_20







Wiek: 31
Na forum: 6684 dni
Posty: 155
Nick w MP: adrian_w

Piwa: 1568

Respekt: 111
Respekt: 111

linijke 7682 zamien na ta
Kod:

format(str, sizeof(str), "INSERT INTO `1orders` (`orType`, `orValue1`, `orPrice`, `orOwnerType`, `orOwner`, `orName`) VALUES ('ORD_TYP_VEH', '%d', '%d', '%d', '%s')", strval(inputtext),


Podpis
Oglądaj filmy i seriale online za darmo, bez reklam i limitów

http://maxkino.tv
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-05-02, 00:55


mi9h







Wiek: 32
Na forum: 6507 dni
Posty: 17



Respekt: 50

problem z map? polskie party

Kod:

C:\Users\Micha?\Desktop\pp.pwn(9225) : error 017: undefined symbol "strrest"
C:\Users\Micha?\Desktop\pp.pwn(9225) : error 033: array must be indexed (variable "String")
C:\Users\Micha?\Desktop\pp.pwn(9679) : error 017: undefined symbol "strrest"
C:\Users\Micha?\Desktop\pp.pwn(9679) : error 033: array must be indexed (variable "BReason")
C:\Users\Micha?\Desktop\pp.pwn(12879) : error 017: undefined symbol "strrest"
C:\Users\Micha?\Desktop\pp.pwn(12879) : error 033: array must be indexed (variable "Reason")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.


Kod mapy: http://wklej.org/id/522215/

Prosz? o pomoc gdy? chc? kilka rzeczy zmieni? w mapce ( nie autora) ale nazw? mapki , napisy zamiast polskie party ITP

Pilnie potrzebuje to na jak najszybciej

Pzdr

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-05-02, 01:01


adrian_pl_20







Wiek: 31
Na forum: 6684 dni
Posty: 155
Nick w MP: adrian_w

Piwa: 1568

Respekt: 111
Respekt: 111

dodaj na dole mapy
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;
}


Podpis
Oglądaj filmy i seriale online za darmo, bez reklam i limitów

http://maxkino.tv
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-05-02, 23:28


mi9h







Wiek: 32
Na forum: 6507 dni
Posty: 17



Respekt: 50

"adrian_pl_20" napisał/a:

dodaj na dole mapy
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;
}



Dzia?a!!!

wielkie dzi?ki!!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-05-26, 18:57


naemarq







Wiek: 38
Na forum: 6242 dni
Posty: 16



Respekt: 50

Witam mam kilka error?w w mapie i nie mog? ich usun??, za pomoc zimne :piwo:

Kod:

: warning 217: loose indentation
(9109) : warning 217: loose indentation
(9196) : warning 217: loose indentation
(9466) : warning 217: loose indentation
(9489) : warning 217: loose indentation
(15750) : error 017: undefined symbol "strrest"
(15750) : error 033: array must be indexed (variable "String")
(16204) : error 017: undefined symbol "strrest"
(16204) : error 033: array must be indexed (variable "BReason")
(19415) : error 017: undefined symbol "strrest"
(19415) : error 033: array must be indexed (variable "Reason")
(20452) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-05-26, 19:08


MG303







Wiek: 30
Na forum: 6419 dni
Posty: 654

Piwa: 2990

Respekt: 231,6
Respekt: 231,6Respekt: 231,6

naemarq, podaj kod :)

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