- 0
Imi da eroare la compilare
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Iulian2
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;
}
2 answers to this question
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