Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ovde mi izlazi errori: Napisanna ti je dole komanda i napisano ti je gde izlazi erro a za ovaj zadnji PlayerPos otrivam sta je al nikako da ga otkrijem xD :)ako znas i to mi pomogni :D
- C:\Users\Acke\Desktop\samp03e_svr_R2_win32\gamemodes\moja.pwn(29814) : warning 202: number of arguments does not match definition
- C:\Users\Acke\Desktop\samp03e_svr_R2_win32\gamemodes\moja.pwn(29814) : warning 202: number of arguments does not match definition
- C:\Users\Acke\Desktop\samp03e_svr_R2_win32\gamemodes\moja.pwn(29814) : warning 202: number of arguments does not match definition
- C:\Users\Acke\Desktop\samp03e_svr_R2_win32\gamemodes\moja.pwn(45106) : warning 203: symbol is never used: "PlayerPos"
- Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
- Header size: 10208 bytes
- Code size: 1705448 bytes
- Data size: 11034456 bytes
- Stack/heap size: 16384 bytes; estimated max. usage=4466 cells (17864 bytes)
- Total requirements:12766496 bytes
- 6 Warnings.
- Evo deo sktipre te gde mi izlazi :)
- if(strcmp(cmd, "/bbank", true) == 0 || strcmp(cmd, "/bdeposit", true) == 0)
- {
- OVDE MI IZLAZI U OVOM KODU if(PlayerToPoint(3.0,playerid,1097.7882,-1606.0138,13.6151) || PlayerToPoint(3.0,playerid,1211.4314,-914.8712,43.0201) || PlayerToPoint(3.0,playerid,2221.7788,-1153.8906,25.7614) || PlayerToPoint(3.0,playerid,1254.3721,-1639.1016,13.5469) || PlayerToPoint(3.0,playerid,2017.6630,-1332.5795,23.9844) || PlayerToPoint(3.0,playerid,1211.4314,-914.8712,43.0201) || PlayerToPoint(3.0,playerid,296,1500.3928,-1741.7374,13.5469,181.5965,0))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "KORISTENJE: /bank [amount]");
- format(string, sizeof(string), " Imate $%d na vasem racunu.", PlayerInfo[playerid][pAccount]);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- return 1;
- }
- new cashdeposit = strval(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "KORISTENJE: /bank [amount]");
- format(string, sizeof(string), " Imate $%d na vasem racunu.", PlayerInfo[playerid][pAccount]);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- return 1;
- }
- if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " Nemate toliko");
- return 1;
- }
- GivePlayerMoney(playerid,-cashdeposit);
- new curfunds = PlayerInfo[playerid][pAccount];
- PlayerInfo[playerid][pAccount]=cashdeposit+PlayerInfo[playerid][pAccount];
- SendClientMessage(playerid, COLOR_WHITE, "|___ BANKOVNO IZVJESCE ___|");
- format(string, sizeof(string), " Staro stanje: $%d", curfunds);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- format(string, sizeof(string), " Depozit: $%d",cashdeposit);
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
- format(string, sizeof(string), " Novo stanje: $%d", PlayerInfo[playerid][pAccount]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment