Jump to content

MatR3

Member
  • Posts

    68
  • Joined

  • Last visited

Everything posted by MatR3

  1. https://pastebin.com/i19FY09G Imi arata 78 / 78 cutii si chei , ce pot face este gm bured ..
  2. https://pastebin.com/3LshbkMJ Cum pot face sa imi dea si o masina la bonus?
  3. https://pastebin.com/dEUqFws8 Cum pot adauga sa iti dea si o masina de inceput?
  4. CMD:admins(playerid, params[]) { if(IsPlayerConnected(playerid)) { new string[200],sendername[30]; SendClientMessage(playerid, COLOR_WHITE, "Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n."); SendClientMessage(playerid, COLOR_WHITE, "Poti deschide un ticket in panel (www.b-Game.ro/panel) daca ai o problema ce nu poate fi rezolvata in joc (cont blocat, parola pierdute)."); SendClientMessage(playerid, COLOR_WHITE, "{408080}-----Admins Online----"); foreach(Player,i) { if(IsPlayerConnected(i)) { if(PlayerInfo[pAdmin] == 1) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "{FFFFFF} (%d) %s - admin level 1", i, sendername); SendClientMessage(playerid, -1, string); } if(PlayerInfo[pAdmin] == 2) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "{FFFFFF} (%d) %s - admin level 2", i, sendername); SendClientMessage(playerid, -1, string); } if(PlayerInfo[pAdmin] == 3) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "{FFFFFF} (%d) %s - admin level 3", i, sendername); SendClientMessage(playerid, -1, string); } if(PlayerInfo[pAdmin] == 4) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "{FFFFFF} (%d) %s - admin level 4", i, sendername); SendClientMessage(playerid, -1, string); } if(PlayerInfo[pAdmin] == 5) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "{FFFFFF} (%d) %s - admin level 5", i, sendername); SendClientMessage(playerid, -1, string); } if(PlayerInfo[pAdmin] == 6) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "{FFFFFF} (%d) %s - admin level 6", i, sendername); SendClientMessage(playerid, -1, string); } } } SendClientMessage(playerid, COLOR_WHITE, "{408080}--------------------------------------------"); SendClientMessage(playerid, COLOR_WHITE, "Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n."); SendClientMessage(playerid, COLOR_WHITE, "{408080}--------------------------------------------"); } return 1; } Cum pot sa adaug si admin 7 ? nu imi merge
  5. MatR3

    [DELETED]Error

    C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20889) : warning 213: tag mismatch C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20889) : error 001: expected token: ")", but found "[" C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20889) : error 029: invalid expression, assumed zero C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20889) : warning 215: expression has no effect C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20889) : error 001: expected token: ";", but found "]" C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20889) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
  6. MatR3

    [DELETED]Error

    if(PlayerInfo[playerid][pCar][v] != -1) total++;
  7. MatR3

    [DELETED]Error

    https://pastebin.com/0NntcH1t C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : error 017: undefined symbol "pCar" C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : error 029: invalid expression, assumed zero C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : warning 215: expression has no effect C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : error 001: expected token: ";", but found "]" C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
  8. C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : error 017: undefined symbol "pCar" C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : error 029: invalid expression, assumed zero C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : warning 215: expression has no effect C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : error 001: expected token: ";", but found "]" C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
  9. https://pastebin.com/0NntcH1t C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20886) : error 017: undefined symbol "MAX_PERSONAL_VEHICLES" C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : error 017: undefined symbol "pCar" C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : error 029: invalid expression, assumed zero C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : warning 215: expression has no effect C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : error 001: expected token: ";", but found "]" C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors.
  10. CMD:roll(playerid, params[]) { if(IsPlayerConnected(playerid)) { if(GiftBoxActiv > 0) { if(floatround(PlayerInfo[playerid][pConnectTime], floatround_round) <= 4) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need 3 played hours to use /roll."); if(PlayerInfo[playerid][pGiftTime] > 0) { new string[128]; if(PlayerInfo[playerid][pLanguage] == 2) { format(string,sizeof(string),"Poti folosi /roll peste %d ore",PlayerInfo[playerid][pGiftTime]); SendClientMessage(playerid, COLOR_NEWS, string); format(string,sizeof(string),"Timpul pe /sleep nu se pune, ore ramase: %d",PlayerInfo[playerid][pGiftTime]); SendClientMessage(playerid, COLOR_NEWS, string); } else { format(string,sizeof(string),"You will be able /roll in %d hours.",PlayerInfo[playerid][pGiftTime]); SendClientMessage(playerid, COLOR_RED, string); format(string,sizeof(string),"The time spent on /sleep doesn't count. hours need: %d",PlayerInfo[playerid][pGiftTime]); SendClientMessage(playerid, COLOR_RED, string); } return 1; } if(IsPlayerInRangeOfPoint(playerid,5.0, 176.1805,-1859.4982,3.2474)) { new randgift = random(100),string[256],sendername[30],randmoney,stringg[500],y,m,d,h,mi,s; getdate(y,m,d); gettime(h,mi,s); GetPlayerName(playerid,sendername,sizeof(sendername)); if(randgift >= 0 && randgift <= 30) { randmoney = 500000 + random(500000) + random(1000000); GivePlayerCash(playerid, randmoney); Update(playerid, pCashx); format(string, sizeof(string), "%s a castigat $%s",sendername,FormatNumber(randmoney)); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", string, "OK", ""); ProxDetector(30.0, playerid, string,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); } if(randgift >= 31 && randgift <= 59) { new str[1400]; PlayerInfo[playerid][pCarLic] = 1; PlayerInfo[playerid][pCarLicT] = 500; PlayerInfo[playerid][pFlyLic] = 1; PlayerInfo[playerid][pFlyLicT] = 500; PlayerInfo[playerid][pBoatLic] = 1; PlayerInfo[playerid][pBoatLicT] = 500; PlayerInfo[playerid][pGunLic] = 1; PlayerInfo[playerid][pGunLicT] = 500; mysql_format(SQL,str,sizeof(str),"UPDATE users SET `CarLic`='1',`CarLicT`='500',`FlyLic`='1',`FlyLicT`='500',`BoatLic`='1',`BoatLicT`='500',`GunLic`='1',`GunLicT`='500' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str,"",""); format(string,sizeof(string),"%s a castigat licentele pentru 500 ore.",sendername); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", string, "OK", ""); ProxDetector(30.0, playerid, string,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); } if(randgift >= 60 && randgift <= 69) { if(PlayerInfo[playerid][pWarns] == 0) { randmoney = 500000 + random(500000) + random(1000000); GivePlayerCash(playerid, randmoney); Update(playerid, pCashx); format(string, sizeof(string), "%s a castigat $%s",sendername,FormatNumber(randmoney)); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", string, "OK", ""); ProxDetector(30.0, playerid, string,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); } else { PlayerInfo[playerid][pWarns] = 0; Update(playerid, pWarnsx); format(string,sizeof(string),"%S a castigat 'sterge warnuri'.",sendername); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", string, "OK", ""); ProxDetector(30.0, playerid, string,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); } } if(randgift >= 70 && randgift <= 79) { if(PlayerInfo[playerid][pFpunish] == 0) { randmoney = 500000 + random(500000) + random(1000000); GivePlayerCash(playerid, randmoney); Update(playerid, pCashx); format(string, sizeof(string), "%s a castigat $%s.",sendername,FormatNumber(randmoney)); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", string, "OK", ""); ProxDetector(30.0, playerid, string,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); } else { PlayerInfo[playerid][pFpunish] = 0; Update(playerid, pFpunishx); format(string,sizeof(string),"%s a castigat 'sterge faction punish'.",sendername); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", string, "OK", ""); ProxDetector(30.0, playerid, string,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); } } if(randgift >= 80 && randgift <= 89) { PlayerInfo[playerid][pHiddenColor] += 1; Update(playerid, pHiddenColorx); format(string,sizeof(string),"(( Roll: {FFFF00}%s {A9C4E4}a castigat o culoare {C2A2DA}hidden {A9C4E4}din roll! Felicitari! ))",sendername); SendClientMessageToAll(COLOR_GENANNOUNCE, string); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", "You won a hidden color from the Roll.", "OK", ""); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); } if(randgift >= 90 && randgift <= 94) { new randpoints = 5 + random(31) + random(26),points,str2[128],count; PlayerInfo[playerid][pPremiumPoints] += randpoints; Update(playerid, pPremiumPointsx); format(string,sizeof(string),"(( Roll: {FFFF00}%s {A9C4E4}a castigat {FFFF00}%d puncte premium {A9C4E4}din Roll! Felicitari! ))",sendername,randpoints); SendClientMessageToAll(COLOR_GENANNOUNCE, string); format(string,sizeof(string),"You won %d premium points.",randpoints); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", string, "OK", ""); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`,`puncte`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d','%d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s,randpoints); mysql_tquery(SQL,string,"",""); format(str2, sizeof(str2), "SELECT * FROM `giftbox_logs`"); new Cache: ab = mysql_query(SQL, str2); for(new i, j = cache_get_row_count (); i != j; ++i) { points = cache_get_field_content_int(i, "puncte"); count += points; } cache_delete(ab); format(string, sizeof(string), "(( Roll: Au fost castigate %d puncte premium. ))",(count+randpoints)); SendClientMessageToAll(COLOR_GENANNOUNCE, string); } if(randgift >= 95) { new total,str2[256],masina=1; for(new v; v < MAX_PERSONAL_VEHICLES; v++) { if(PlayerInfo[playerid][pCar][v] != -1) total++; } if(total+1 > PlayerInfo[playerid][pCarSlots]) { if(PlayerInfo[playerid][pCarSlots] < MAX_PERSONAL_VEHICLES) { PlayerInfo[playerid][pCarSlots] += 1; mysql_format(SQL,str2,sizeof(str2),"UPDATE users SET `CarSlots`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pCarSlots],PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str2,"",""); } else { masina = 0; } } if(masina == 1) { new result[128],count; InsertCar(playerid,104,1); format(string,sizeof(string),"(( Roll: {FFFF00}%s {A9C4E4}a castigat o masina {FFFF00}Stretch {A9C4E4}! Felicitari! ))",sendername); SendClientMessageToAll(COLOR_GENANNOUNCE, string); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", "You won a Stretch.", "OK", ""); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); format(str2, sizeof(str2), "SELECT * FROM `giftbox_logs`"); new Cache: ab = mysql_query(SQL, str2); for(new i, j = cache_get_row_count (); i != j; ++i) { cache_get_field_content(i, "text", result); if(strfind(result, "Bullet", true) != -1) count++; } cache_delete(ab); format(string, sizeof(string), "(( Roll: Au fost castigate %d masini ))",(count+1)); SendClientMessageToAll(COLOR_GENANNOUNCE, string); } else { randmoney = 500000 + random(500000) + random(1000000); GivePlayerCash(playerid, randmoney); Update(playerid, pCashx); format(string, sizeof(string), "%s a castigat $%s",sendername,FormatNumber(randmoney)); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", string, "OK", ""); ProxDetector(30.0, playerid, string,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); } } PlayerInfo[playerid][pGiftTime] += 5; Update(playerid, pGiftTimex); } else { SendClientMessage(playerid, COLOR_RED, "Nu esti pe plaja."); SendClientMessage(playerid, COLOR_YELLOW, "Mergi la checkpoint-ul de pe minimap pentru a ajunge pe plaja!"); SetPlayerCheckpoint(playerid,176.1805,-1859.4982,3.2474,5.0); CP[playerid] = 6868; return 1; } } else return SendClientMessage(playerid, COLOR_RED, "Sistemul Roll nu este activat."); } return 1; } C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20886) : error 017: undefined symbol "MAX_PERSONAL_VEHICLES" C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : error 017: undefined symbol "pCar" C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : error 029: invalid expression, assumed zero C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : warning 215: expression has no effect C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : error 001: expected token: ";", but found "]" C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors.
  11. CMD:roll(playerid, params[]) { if(IsPlayerConnected(playerid)) { if(GiftBoxActiv > 0) { if(floatround(PlayerInfo[playerid][pConnectTime], floatround_round) <= 4) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need 3 played hours to use /roll."); if(PlayerInfo[playerid][pGiftTime] > 0) { new string[128]; if(PlayerInfo[playerid][pLanguage] == 2) { format(string,sizeof(string),"Poti folosi /roll peste %d ore",PlayerInfo[playerid][pGiftTime]); SendClientMessage(playerid, COLOR_NEWS, string); format(string,sizeof(string),"Timpul pe /sleep nu se pune, ore ramase: %d",PlayerInfo[playerid][pGiftTime]); SendClientMessage(playerid, COLOR_NEWS, string); } else { format(string,sizeof(string),"You will be able /roll in %d hours.",PlayerInfo[playerid][pGiftTime]); SendClientMessage(playerid, COLOR_RED, string); format(string,sizeof(string),"The time spent on /sleep doesn't count. hours need: %d",PlayerInfo[playerid][pGiftTime]); SendClientMessage(playerid, COLOR_RED, string); } return 1; } if(IsPlayerInRangeOfPoint(playerid,5.0, 176.1805,-1859.4982,3.2474)) { new randgift = random(100),string[256],sendername[30],randmoney,stringg[500],y,m,d,h,mi,s; getdate(y,m,d); gettime(h,mi,s); GetPlayerName(playerid,sendername,sizeof(sendername)); if(randgift >= 0 && randgift <= 30) { randmoney = 500000 + random(500000) + random(1000000); GivePlayerCash(playerid, randmoney); Update(playerid, pCashx); format(string, sizeof(string), "%s a castigat $%s",sendername,FormatNumber(randmoney)); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", string, "OK", ""); ProxDetector(30.0, playerid, string,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); } if(randgift >= 31 && randgift <= 59) { new str[1400]; PlayerInfo[playerid][pCarLic] = 1; PlayerInfo[playerid][pCarLicT] = 500; PlayerInfo[playerid][pFlyLic] = 1; PlayerInfo[playerid][pFlyLicT] = 500; PlayerInfo[playerid][pBoatLic] = 1; PlayerInfo[playerid][pBoatLicT] = 500; PlayerInfo[playerid][pGunLic] = 1; PlayerInfo[playerid][pGunLicT] = 500; mysql_format(SQL,str,sizeof(str),"UPDATE users SET `CarLic`='1',`CarLicT`='500',`FlyLic`='1',`FlyLicT`='500',`BoatLic`='1',`BoatLicT`='500',`GunLic`='1',`GunLicT`='500' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str,"",""); format(string,sizeof(string),"%s a castigat licentele pentru 500 ore.",sendername); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", string, "OK", ""); ProxDetector(30.0, playerid, string,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); } if(randgift >= 60 && randgift <= 69) { if(PlayerInfo[playerid][pWarns] == 0) { randmoney = 500000 + random(500000) + random(1000000); GivePlayerCash(playerid, randmoney); Update(playerid, pCashx); format(string, sizeof(string), "%s a castigat $%s",sendername,FormatNumber(randmoney)); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", string, "OK", ""); ProxDetector(30.0, playerid, string,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); } else { PlayerInfo[playerid][pWarns] = 0; Update(playerid, pWarnsx); format(string,sizeof(string),"%S a castigat 'sterge warnuri'.",sendername); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", string, "OK", ""); ProxDetector(30.0, playerid, string,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); } } if(randgift >= 70 && randgift <= 79) { if(PlayerInfo[playerid][pFpunish] == 0) { randmoney = 500000 + random(500000) + random(1000000); GivePlayerCash(playerid, randmoney); Update(playerid, pCashx); format(string, sizeof(string), "%s a castigat $%s.",sendername,FormatNumber(randmoney)); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", string, "OK", ""); ProxDetector(30.0, playerid, string,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); } else { PlayerInfo[playerid][pFpunish] = 0; Update(playerid, pFpunishx); format(string,sizeof(string),"%s a castigat 'sterge faction punish'.",sendername); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", string, "OK", ""); ProxDetector(30.0, playerid, string,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); } } if(randgift >= 80 && randgift <= 89) { PlayerInfo[playerid][pHiddenColor] += 1; Update(playerid, pHiddenColorx); format(string,sizeof(string),"(( Roll: {FFFF00}%s {A9C4E4}a castigat o culoare {C2A2DA}hidden {A9C4E4}din roll! Felicitari! ))",sendername); SendClientMessageToAll(COLOR_GENANNOUNCE, string); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", "You won a hidden color from the Roll.", "OK", ""); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); } if(randgift >= 90 && randgift <= 94) { new randpoints = 5 + random(31) + random(26),points,str2[128],count; PlayerInfo[playerid][pPremiumPoints] += randpoints; Update(playerid, pPremiumPointsx); format(string,sizeof(string),"(( Roll: {FFFF00}%s {A9C4E4}a castigat {FFFF00}%d puncte premium {A9C4E4}din Roll! Felicitari! ))",sendername,randpoints); SendClientMessageToAll(COLOR_GENANNOUNCE, string); format(string,sizeof(string),"You won %d premium points.",randpoints); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", string, "OK", ""); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`,`puncte`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d','%d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s,randpoints); mysql_tquery(SQL,string,"",""); format(str2, sizeof(str2), "SELECT * FROM `giftbox_logs`"); new Cache: ab = mysql_query(SQL, str2); for(new i, j = cache_get_row_count (); i != j; ++i) { points = cache_get_field_content_int(i, "puncte"); count += points; } cache_delete(ab); format(string, sizeof(string), "(( Roll: Au fost castigate %d puncte premium. ))",(count+randpoints)); SendClientMessageToAll(COLOR_GENANNOUNCE, string); } if(randgift >= 95) { new total,str2[256],masina=1; for(new v; v < MAX_PERSONAL_VEHICLES; v++) { if(PlayerInfo[playerid][pCar][v] != -1) total++; } if(total+1 > PlayerInfo[playerid][pCarSlots]) { if(PlayerInfo[playerid][pCarSlots] < MAX_PERSONAL_VEHICLES) { PlayerInfo[playerid][pCarSlots] += 1; mysql_format(SQL,str2,sizeof(str2),"UPDATE users SET `CarSlots`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pCarSlots],PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str2,"",""); } else { masina = 0; } } if(masina == 1) { new result[128],count; InsertCar(playerid,104,1); format(string,sizeof(string),"(( Roll: {FFFF00}%s {A9C4E4}a castigat o masina {FFFF00}Stretch {A9C4E4}! Felicitari! ))",sendername); SendClientMessageToAll(COLOR_GENANNOUNCE, string); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", "You won a Stretch.", "OK", ""); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); format(str2, sizeof(str2), "SELECT * FROM `giftbox_logs`"); new Cache: ab = mysql_query(SQL, str2); for(new i, j = cache_get_row_count (); i != j; ++i) { cache_get_field_content(i, "text", result); if(strfind(result, "Bullet", true) != -1) count++; } cache_delete(ab); format(string, sizeof(string), "(( Roll: Au fost castigate %d masini ))",(count+1)); SendClientMessageToAll(COLOR_GENANNOUNCE, string); } else { randmoney = 500000 + random(500000) + random(1000000); GivePlayerCash(playerid, randmoney); Update(playerid, pCashx); format(string, sizeof(string), "%s a castigat $%s",sendername,FormatNumber(randmoney)); ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Roll", string, "OK", ""); ProxDetector(30.0, playerid, string,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS,COLOR_NEWS); mysql_real_escape_string(string, stringg); mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", stringg, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s); mysql_tquery(SQL,string,"",""); } } PlayerInfo[playerid][pGiftTime] += 5; Update(playerid, pGiftTimex); } else { SendClientMessage(playerid, COLOR_RED, "Nu esti pe plaja."); SendClientMessage(playerid, COLOR_YELLOW, "Mergi la checkpoint-ul de pe minimap pentru a ajunge pe plaja!"); SetPlayerCheckpoint(playerid,176.1805,-1859.4982,3.2474,5.0); CP[playerid] = 6868; return 1; } } else return SendClientMessage(playerid, COLOR_RED, "Sistemul Roll nu este activat."); } return 1; } C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20886) : error 017: undefined symbol "MAX_PERSONAL_VEHICLES" C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : error 017: undefined symbol "pCar" C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : error 029: invalid expression, assumed zero C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : warning 215: expression has no effect C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : error 001: expected token: ";", but found "]" C:\Users\Ionut\Desktop\GM TOT\GM 2019\gamemodes\BigZoneGM.pwn(20888) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors.
  12. Ce imi trebuie sa fac un forum , pas cu pas nu gasesc nicaieri , ajutor ...
  13. O comanda sa nu mai pice ? Am gm bigzone cand dau /changepass %n pica serverul
×
×
  • Create New...