-
Posts
109 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Everything posted by Iulian2
-
-
O comanda /bonus pentru gm BURNED?
-
Din dreapta de jos ? Am incercat si imi da eroare
-
Ce imi trebuie sa fac un panel?
-
Exista un sistem sa nu mai intra chiar daca i-am dat ban? Adica tot intra cu acelasi IP
-
cand intru undeva de ex: gun shop , burger cad prin mapa..
-
C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15331) : error 017: undefined symbol "playerid" C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15331) : error 029: invalid expression, assumed zero C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15331) : warning 215: expression has no effect C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15331) : error 001: expected token: ";", but found "]" C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15331) : 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. tot nu merge..
-
C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15321) : error 028: invalid subscript (not an array or too many subscripts): "pInfo" C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15321) : error 017: undefined symbol "playerid" C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15321) : error 029: invalid expression, assumed zero C:\Users\Ionut\Desktop\GM\gamemodes\gm.pwn(15321) : 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.
-
este gm BigZone
-
TutTime = 0; PlayerInfo[pTut] = 1; gOoc = 0; gNews = 0; gFam = 0; TogglePlayerControllable(i, 1); SetCameraBehindPlayer(i); TogglePlayerSpectating(i, 0); SetPlayerSpawn(i); PlayerInfo[pAccount] = 10000; PlayerInfo[pLevel] = 2; PlayerInfo[pPremiumPoints] = 10; ResetPlayerCash(i); GivePlayerCash(i,500000); PlayerInfo[pRob] = 20; SetPlayerInterior(i,0); SetPlayerVirtualWorld(i,0); TogglePlayerControllable(i,true); new str1[256]; mysql_format(SQL,str1,256,"UPDATE users SET `Tutorial`='1',`Bank`='1000000',`PremiumPoints`='20' WHERE `name`='%s'",PlayerInfo[pNormalName]); mysql_tquery(SQL,str1,"",""); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); ShowPlayerDialog(i, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "Welcome", "Salut! Bine ai venit in comunitatea b-Game Romania!\nSperam sa te distrezi alaturi de noi,\nPentru ca esti nou, iti oferim unele beneficii pe care le poti vedea chiar acum in chat.", "Multumesc", ""); SCM(i, COLOR_WHITE, "------------------------------------------------------------------"); SCM(i, COLOR_WHITE, "Pentru ca esti incepator, iti oferim cateva bonusuri:"); SCM(i, COLOR_GREEN, "(+) $500,000"); SCM(i, COLOR_GREEN, "(+) Levelul tau este 2"); SCM(i, COLOR_GREEN, "(+) 20 Rob Points"); SCM(i, COLOR_GREEN, "(+) 10 Premium Points"); SCM(i, COLOR_WHITE, "------------------------------------------------------------------"); } Cum pot sa adaug si o masina ca bonus , adica de inceput sa iti dea si o masina
-
TutTime = 0; PlayerInfo[pTut] = 1; gOoc = 0; gNews = 0; gFam = 0; TogglePlayerControllable(i, 1); SetCameraBehindPlayer(i); TogglePlayerSpectating(i, 0); SetPlayerSpawn(i); PlayerInfo[pAccount] = 10000; PlayerInfo[pLevel] = 2; PlayerInfo[pPremiumPoints] = 10; ResetPlayerCash(i); GivePlayerCash(i,500000); PlayerInfo[pRob] = 20; SetPlayerInterior(i,0); SetPlayerVirtualWorld(i,0); TogglePlayerControllable(i,true); new str1[256]; mysql_format(SQL,str1,256,"UPDATE users SET `Tutorial`='1',`Bank`='1000000',`PremiumPoints`='20' WHERE `name`='%s'",PlayerInfo[pNormalName]); mysql_tquery(SQL,str1,"",""); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); ShowPlayerDialog(i, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "Welcome", "Salut! Bine ai venit in comunitatea b-Game Romania!\nSperam sa te distrezi alaturi de noi,\nPentru ca esti nou, iti oferim unele beneficii pe care le poti vedea chiar acum in chat.", "Multumesc", ""); SCM(i, COLOR_WHITE, "------------------------------------------------------------------"); SCM(i, COLOR_WHITE, "Pentru ca esti incepator, iti oferim cateva bonusuri:"); SCM(i, COLOR_GREEN, "(+) $500,000"); SCM(i, COLOR_GREEN, "(+) Levelul tau este 2"); SCM(i, COLOR_GREEN, "(+) 20 Rob Points"); SCM(i, COLOR_GREEN, "(+) 10 Premium Points"); SCM(i, COLOR_WHITE, "------------------------------------------------------------------"); } Cum pot sa adaug si o masina ca bonus , adica de inceput sa iti dea si o masina
-
Am rezolvat , mai am o singura problema
-
public LocateCar(car,playerid) { new Float:x,Float:y,Float:z,Float:xx,Float:yy,Float:zz,Float: distance,string[256]; GetVehiclePos(car, x, y, z); GetPlayerPos(playerid, xx, yy, zz); SetPlayerCheckpoint(playerid, x, y, z, 4); gPlayerCheckpointStatus[playerid] = CHECKPOINT_LOCATE; distance = GetDistanceBetweenPoints(xx,yy,zz,x,y,z); format(string,sizeof(string),"Mergi la punctul rosu de pe minimap pentru a ajunge la masina ta. Distanta: %.0fm.",distance); SendClientMessage(playerid,COLOR_YELLOW,string); return 1; } Cand imi cumpar o masina imi apare acolo checkpoint si acolo nu este masina , ce trebuie sa fac?
-
TutTime = 0; PlayerInfo[pTut] = 1; gOoc = 0; gNews = 0; gFam = 0; TogglePlayerControllable(i, 1); SetCameraBehindPlayer(i); TogglePlayerSpectating(i, 0); SetPlayerSpawn(i); PlayerInfo[pAccount] = 10000; PlayerInfo[pLevel] = 2; PlayerInfo[pPremiumPoints] = 10; ResetPlayerCash(i); GivePlayerCash(i,500000); PlayerInfo[pRob] = 20; SetPlayerInterior(i,0); SetPlayerVirtualWorld(i,0); TogglePlayerControllable(i,true); new str1[256]; mysql_format(SQL,str1,256,"UPDATE users SET `Tutorial`='1',`Bank`='1000000',`PremiumPoints`='20' WHERE `name`='%s'",PlayerInfo[pNormalName]); mysql_tquery(SQL,str1,"",""); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); SCM(i, COLOR_WHITE, " "); ShowPlayerDialog(i, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "Welcome", "Salut! Bine ai venit in comunitatea b-Game Romania!\nSperam sa te distrezi alaturi de noi,\nPentru ca esti nou, iti oferim unele beneficii pe care le poti vedea chiar acum in chat.", "Multumesc", ""); SCM(i, COLOR_WHITE, "------------------------------------------------------------------"); SCM(i, COLOR_WHITE, "Pentru ca esti incepator, iti oferim cateva bonusuri:"); SCM(i, COLOR_GREEN, "(+) $500,000"); SCM(i, COLOR_GREEN, "(+) Levelul tau este 2"); SCM(i, COLOR_GREEN, "(+) 20 Rob Points"); SCM(i, COLOR_GREEN, "(+) 10 Premium Points"); SCM(i, COLOR_WHITE, "------------------------------------------------------------------"); Cum pot adauga si o masina gen tampa ?
-
Alt link
-
Gamemode AngelZone - Edit: Razvan - Versiune: RPG Razvan 0.5
Iulian2 replied to razvanduciuc's topic in Gamemode-uri
Alt link? -
Il dai , te rog mult
-
if(PlayerInfo[playerid][pCar][v] != -1) total++;
-
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. 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; }
-
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.
-
Nu apare in samp l-am bagat in filescript , ce trebuie sa mai fac?
-
#include <a_samp> #define COLOR_RED 0xFF0000FF new CTimer1; new CTimer2; new CTimer3; new CTimer4; new CTimer5; forward Color1(playerid); forward Color2(playerid); forward Color3(playerid); forward Color4(playerid); forward Color5(playerid); public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Rainbow Cars - by v0nz. "); print("--------------------------------------\n"); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/rainbowcar", cmdtext, true, 14) == 0) { if(IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid, COLOR_RED, "Rainbow Car has been turned on."); KillTimer(CTimer2); KillTimer(CTimer3); KillTimer(CTimer4); KillTimer(CTimer5); CTimer1 = SetTimerEx("Color1", 500, 0, "d" ,playerid); } else { SendClientMessage(playerid, COLOR_RED, "You are not in a vehicle."); } } if (strcmp("/rainbowcaroff", cmdtext, false, 14) == 0) { if(IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid, COLOR_RED, "Rainbow Car has been turned off."); KillTimer(CTimer1); KillTimer(CTimer2); KillTimer(CTimer3); KillTimer(CTimer4); KillTimer(CTimer5); } else { SendClientMessage(playerid, COLOR_RED, "You are not in a vehicle."); } } } public Color1(playerid) { new vehicleid = GetPlayerVehicleID(playerid); KillTimer(CTimer1); ChangeVehicleColor(vehicleid, 1, 1); CTimer2 = SetTimerEx("Color2", 500, 0, "d" ,playerid); } public Color2(playerid) { new vehicleid = GetPlayerVehicleID(playerid); KillTimer(CTimer2); ChangeVehicleColor(vehicleid, 2, 2); CTimer3 = SetTimerEx("Color3", 500, 0, "d" ,playerid); } public Color3(playerid) { new vehicleid = GetPlayerVehicleID(playerid); KillTimer(CTimer3); ChangeVehicleColor(vehicleid, 3, 3); CTimer4 = SetTimerEx("Color4", 500, 0, "d", playerid); } public Color4(playerid) { new vehicleid = GetPlayerVehicleID(playerid); KillTimer(CTimer4); ChangeVehicleColor(vehicleid, 4, 4); CTimer5 = SetTimerEx("Color5", 500, 0, "d" ,playerid); } public Color5(playerid) { new vehicleid = GetPlayerVehicleID(playerid); KillTimer(CTimer5); ChangeVehicleColor(vehicleid, 5, 5); SetTimerEx("Color1", 500, 0, "d" ,playerid); } public OnFilterScriptExit() { return 1; } Vreau sa adaug sa coste pp sau bani , cum fac acest lucru ?? este FS
-
Un sistem de rainbowcar foarte simplu , nu gasesc nicaieri help
-
Nu am gasit nici-o comanda sa dau PP la tot sv , ma puteti ajuta?
-
Un sistem simplu de /roll , nu gasesc nicaieri , va rog mult