Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case DIALOG_BUYCRATE:
- {
- if(!response) return 1;
- switch(listitem)
- {
- case 0:
- {
- pInfo[playerid][pDiamonds] -= 12);
- }
- case 1:
- {
- GiveMoney(playerid, -320000);
- }
- new sanse = random(33);
- switch(sanse)
- {
- case 0..10:// 10% sanse
- {
- GiveMoney(playerid, 510000);
- SCM(playerid, COLOR_INFO, "* Ai castigat 510.000$ din (Legendary Crate).");
- }
- case 11..19:// 8% sanse
- {
- GiveMoney(playerid, 540000);
- SCM(playerid, COLOR_INFO, "* Ai castigat 540.000$ din (Legendary Crate).");
- }
- case 20..26:// 6% sanse
- {
- GiveMoney(playerid, 600000);
- SCM(playerid, COLOR_INFO, "* Ai castigat 600.000 din (Legendary Crate).");
- }
- case 27..30:// 3% sanse
- {
- pInfo[playerid][pScore] += 1, SetPlayerScore(playerid, pInfo[playerid][pScore]);
- SCM(playerid, COLOR_INFO, "* Ai castigat un level 'UP' din (Legendary Crate).");
- }
- case 31..33:// 2% sanse
- {
- pInfo[playerid][pDiamonds] += 32;
- SCM(playerid, COLOR_INFO, "* Ai primit [32 Diamonds] din (Legendary Crate).");
- }
- }
- }
- CMD:buycrate(playerid, params[])
- {
- if(pInfo[playerid][pScore] < 3) return SCM(playerid, COLOR_INFO, "* Nu ai nivelul necesar pentru a folosi aceasta comanda.");
- if(pInfo[playerid][pDiamonds] < 12) return SCM(playerid, COLOR_INFO, "* Nu ai destule diamante.");
- if(pInfo[playerid][pMoney] < 320000) return SCM(playerid, COLOR_INFO, "* Nu ai destui bani.");
- if(!IsPlayerInRangeOfPoint(playerid, 15.0,155.6681,-1966.2190,3.5834)) return SCM(playerid, COLOR_INFO, "* Nu esti la locatia potrivita.");
- ShowPlayerDialog(playerid, DIALOG_BUYCRATE, DIALOG_STYLE_LIST, "CRATE", "12 Diamonds", "320.000$", "Ok", "Close");
- return 1;
- }
- C:\Users\andrei\Desktop\GM\gamemodes\GM.pwn(11521) : error 001: expected token: ";", but found ")"
- C:\Users\andrei\Desktop\GM\gamemodes\GM.pwn(11521) : error 029: invalid expression, assumed zero
- C:\Users\andrei\Desktop\GM\gamemodes\GM.pwn(11521) : warning 215: expression has no effect
- C:\Users\andrei\Desktop\GM\gamemodes\GM.pwn(11527) : error 002: only a single statement (or expression) can follow each "case"
- C:\Users\andrei\Desktop\GM\gamemodes\GM.pwn(11527) : error 017: undefined symbol "sanse"
- C:\Users\andrei\Desktop\GM\gamemodes\GM.pwn(11528) : error 017: undefined symbol "sanse"
- C:\Users\andrei\Desktop\GM\gamemodes\GM.pwn(29196) : warning 202: number of arguments does not match definition
- Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
- 5 Errors.
Advertisement
Add Comment
Please, Sign In to add comment