paveldaa 0 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 jejda 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 More sharing options...
Guest Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 jejda 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 More sharing options...
paveldaa 0 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 uplně stejný errory Link to comment Share on other sites More sharing options...
Guest Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 uplně stejný errory dej na konec ; Link to comment Share on other sites More sharing options...
paveldaa 0 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 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 More sharing options...
Nikes 9 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 pošli aspoň od toho 2 řádky dolů i nahorů.. Link to comment Share on other sites More sharing options...
paveldaa 0 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 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 More sharing options...
Guest Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 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 More sharing options...
paveldaa 0 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 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 More sharing options...
Nikes 9 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 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 More sharing options...
paveldaa 0 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 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 More sharing options...
Nikes 9 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 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 More sharing options...
paveldaa 0 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 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 More sharing options...
Guest Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 to bude něco s těma závorkama 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 More sharing options...
Nikes 9 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 skus smazat to ;.. mám banku no.. Link to comment Share on other sites More sharing options...
paveldaa 0 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 Vyřešeno !!! Vyřešeno !! napsal jsem to pod sebe a je to teď bez chyby ,díky dragon !! i vám ostatním za snahu "cheers" Link to comment Share on other sites More sharing options...
Guest Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 Vyřešeno !!! Vyřešeno !! napsal jsem to pod sebe a je to teď bez chyby ,díky dragon !! i vám ostatním za snahu "cheers" postni sem jak si to napsal Link to comment Share on other sites More sharing options...
paveldaa 0 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 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 More sharing options...
LeeDoriftar 0 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 Díky, mě osobně to pomohlo Link to comment Share on other sites More sharing options...
paveldaa 0 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 Díky, mě osobně to pomohlo a co ?? to daní více banek pod sebe ?? Link to comment Share on other sites More sharing options...
Petr 44 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 Blbost to takhle dávat? Zkoušel jsi dát ten příkaz i mimo banku? if Link to comment Share on other sites More sharing options...
paveldaa 0 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 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 More sharing options...
Nikes 9 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 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 More sharing options...
paveldaa 0 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 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 More sharing options...
Nikes 9 Odesláno: 27. Listopad, 2011 Share Odesláno: 27. Listopad, 2011 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now