Jump to content

Banka


Guest CHEF

Recommended Posts

 

jejda :d přidal jsem tam další a napsalo to tohle

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 029: invalid expression, assumed zero

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : warning 215: expression has no effect

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 001: expected token: ";", but found ")"

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 029: invalid expression, assumed zero

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : fatal error 107: too many error messages on one line

 

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

4 Errors.

 

 

 

řadek

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1 || IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1) || IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1)

asi to bude tohle:

 

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1 || IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1) || IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1)

 

 

no ale kaj to mam plís opravit ?

chybí ti tam závorka --> viz to co je označený červeně porovnej s tim co je zeleně ;)

 

 

stejnak mě to hází erory

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 029: invalid expression, assumed zero

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : warning 215: expression has no effect

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 001: expected token: ";", but found ")"

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 029: invalid expression, assumed zero

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : fatal error 107: too many error messages on one line

 

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

4 Errors.

řadek

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1) || IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1) || IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1)

Link to comment
Share on other sites

  • Replies 133
  • Created
  • Last Reply

Top Posters In This Topic

 

jejda :d přidal jsem tam další a napsalo to tohle

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 029: invalid expression, assumed zero

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : warning 215: expression has no effect

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 001: expected token: ";", but found ")"

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 029: invalid expression, assumed zero

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : fatal error 107: too many error messages on one line

 

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

4 Errors.

 

 

 

řadek

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1 || IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1) || IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1)

asi to bude tohle:

 

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1 || IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1) || IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1)

 

 

no ale kaj to mam plís opravit ?

chybí ti tam závorka --> viz to co je označený červeně porovnej s tim co je zeleně ;)

 

 

stejnak mě to hází erory

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 029: invalid expression, assumed zero

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : warning 215: expression has no effect

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 001: expected token: ";", but found ")"

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 029: invalid expression, assumed zero

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : fatal error 107: too many error messages on one line

 

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

4 Errors.

řadek

if ((IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1) || IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1) || IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1))

zkus tohle ;) snad to pomuže

if ((IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1) || IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1) || IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1))

Link to comment
Share on other sites

 

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 029: invalid expression, assumed zero

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : warning 215: expression has no effect

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 001: expected token: ";", but found ")"

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 029: invalid expression, assumed zero

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : fatal error 107: too many error messages on one line

 

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

4 Errors.

řadek

if ((IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1) || IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1) || IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1));

 

Link to comment
Share on other sites

pošli aspoň od toho 2 řádky dolů i nahorů..

 

 

 

tady máš celej

dcmd_ulozit(playerid, params[])

{

if ((IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1) || IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1) || IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1)); // tady to ten horní je ten řádek !!

if(!strlen(params)) return SendClientMessage(playerid, ZLUTA, "[NAPIŠ]: /ulozit [Částka]");

new castka2 = strval(params);

if(castka2 > GetPlayerMoney(playerid)) return SendClientMessage(playerid, CERVENA, "Špatná částka!");

if(castka2 <= GetPlayerMoney(playerid))

{

bank[playerid] += castka2;

GivePlayerMoney(playerid, -castka2);

new string[256];

format(string, sizeof(string), "Uložil jsi: %d, zůstatek na účtu: %d.", castka2, bank[playerid]);

SendClientMessage(playerid, ZLUTA, string);

}

return true;

}

 

Link to comment
Share on other sites

zkus naposledy tohle

 

if (((IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1) || IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1) || IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1);

 

 

pokud nepomuže tak už opravdu nevim

Link to comment
Share on other sites

zkus naposledy tohle

 

if (((IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1) || IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1) || IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1);

 

 

pokud nepomuže tak už opravdu nevim

 

 

ee nepomohlo :-(

Link to comment
Share on other sites

příde mi že

if ((IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1) || IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1) || IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1)); 

 

 

tam máš hodně ( nebo )

Link to comment
Share on other sites

příde mi že

if ((IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1) || IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1) || IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1)); 

 

 

tam máš hodně ( nebo )

 

 

myslíš jako že jich už tam je moc ??? že max 2 ??

Link to comment
Share on other sites

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1) || IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1) || IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1));

takhle to skus

Link to comment
Share on other sites

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1) || IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1) || IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1));

takhle to skus

 

 

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 029: invalid expression, assumed zero

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : warning 215: expression has no effect

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 001: expected token: ";", but found ")"

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : error 029: invalid expression, assumed zero

C:\Users\moje\Desktop\samp03\pawno\prdel.pwn(1271) : fatal error 107: too many error messages on one line

 

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

4 Errors.

 

 

to je napalici :-( nemáš nakej script na lepší banku ?? která je na dialog

Link to comment
Share on other sites

to bude něco s těma závorkama :d ale fakt nevim hele :/

kdyby si to dával po řádku tak to uděláš takto:

 

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1)
if (IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1)
if (IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1)

 

ale ty to chceš do jednoho tudíš musíš:

 

if ((((IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1) ||
IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1) ||
IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1));

 

PS: Počítej si závorky :) musíš mít stejnej počet ( a stejnej počet ) ;)

Link to comment
Share on other sites

Tady máte příklad když chcete přidat více bank !! Najde te je v LV

 

 

 

dcmd_ulozit(playerid, params[])

{

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1)

if (IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1)

if (IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1)

if(!strlen(params)) return SendClientMessage(playerid, ZLUTA, "[NAPIŠ]: /ulozit [Částka]");

new castka2 = strval(params);

if(castka2 > GetPlayerMoney(playerid)) return SendClientMessage(playerid, CERVENA, "Špatná částka!");

if(castka2 <= GetPlayerMoney(playerid))

{

bank[playerid] += castka2;

GivePlayerMoney(playerid, -castka2);

new string[256];

format(string, sizeof(string), "Uložil jsi: %d, zůstatek na účtu: %d.", castka2, bank[playerid]);

SendClientMessage(playerid, ZLUTA, string);

}

return true;

}

dcmd_vybrat(playerid, params[])

{

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1)

if (IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1)

if (IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1)

{ //funguje jenom v danych souradnicich (napr pickupu)

if(!strlen(params)) return SendClientMessage(playerid, ZLUTA, "[NAPIŠ]: /vybrat [Částka]");

new castka2 = strval(params);

if(castka2 > bank[playerid]) return SendClientMessage(playerid, CERVENA, "Špatná částka!");

if(castka2 <= bank[playerid])

{

bank[playerid] -= castka2;

GivePlayerMoney(playerid, castka2);

new string[256];

format(string, sizeof(string), "Vybral jsi: %d, zůstatek na účtu: %d.", castka2, bank[playerid]);

SendClientMessage(playerid, ZLUTA, string);

}

}

return true;

}

dcmd_stav(playerid, params[])

{

#pragma unused params

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1)

if (IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1)

if (IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1)

{ //funguje jenom v danych souradnicich (napr pickupu)

new string[256];

format(string, sizeof(string), "Zůstatek na vašem účtu činí: %d.", bank[playerid]);

SendClientMessage(playerid, ZLUTA, string);

}

return true;

}

 

Link to comment
Share on other sites

ja jsem to udělal jak to je daný ve spoileru,spustil jsem hru a u každy mi jenmom fungovalo uložit,nec víc,jak to mam teda udělat ?? plíss ,mimo banku to nejde ,musím být u tý pozice,jinak to nejde

Link to comment
Share on other sites

Tak smaž..

 

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) == 1)
if (IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) == 1)
if (IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15) == 1)

Link to comment
Share on other sites

Udělal jsem to takhle a už to funguje

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) ||

IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) ||

IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15))

 

Link to comment
Share on other sites

Jo ale když budeš chtít příkaz používat všude tak to smaž todle..

if (IsPlayerInSphere(playerid, 1519.4808,1053.7301,10.8203,15) ||
IsPlayerInSphere(playerid, -243.3448,2710.1506,62.6875,15) ||
IsPlayerInSphere(playerid, 2193.4268,2002.1923,12.2894,15))

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...