-
Posts
374 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
News
Documentation
Everything posted by Jimmi
-
Problema intalnita (descriere):Am trecut turfs pe mysql.Acuma ma duc IG dau /turfs si apare pt o secunda si imediat dispar.Sau trebuie sa dau de mai multe ori /turfs ca sa apara. Ero(area / rile) / warning-(ul / urile):- Liniile de cod / sursa / script-ul(obligatoriu): //========================================[CMD /TURFS]=======================================================// CMD:turfs(playerid, params[]) { if(turfs[playerid] == 1) { turfs[playerid] = 0; Turfss(playerid); } else { turfs[playerid] = 1; Turfss(playerid); } } Imagini / Video (optional):- Ati incercat sa rezolvati singur?:Da
-
mda...........
-
Stiu ca nu stiu ce fac acele functii.De aceea am postat aici ca sa mi se explice ce sa fac ca sa fac comanda /ban sa mearga si pe zile
-
WopsS ce sunt cu atatea reclame pe forum.Oriunde ma uit doar reclame.
-
Cand dau /ban ii da permanent.Nu merge sa ii dau pe zile desi am ban_time in baza de date..
-
E mai bine.Ne ajuta sa deosebim moderatorii de membri
-
Problema intalnita (descriere):Revin cu alt topic cum naiba sa fac comanda /ban pe zile. Ero(area / rile) / warning-(ul / urile):- Liniile de cod / sursa / script-ul(obligatoriu): Imagini / Video (optional):- Ati incercat sa rezolvati singur?:Da am adaugat zile dar tot nu merge if(strcmp(cmd, "/ban", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /ban [playerid/numejucator] [days - 0 for permanent] [reason]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[128]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /ban [playerid/numejucator] [days - 0 for permanent] [reason]"); return 1; } if(PlayerInfo[giveplayerid][pAdmin] > 0 && PlayerInfo[playerid][pAdmin] < 6) { SendClientMessage(playerid, COLOR_WHITE, "{0066FF}AdmCmd: {FFFFFF}Nu poti bana admini!"); format(string, sizeof(string), "{0066FF}AdmCmd: {FF0000}%s {FFFFFF}a incercat sa il baneze pe {FF0000}%s {FFFFFF}cu motivul: %s", sendername, giveplayer, (result)); ABroadCast(COLOR_LIGHTRED, string, 1); return 1; } if(PlayerInfo[giveplayerid][pAdmin] > 6) { SendClientMessage(playerid, COLOR_WHITE, "{0066FF}AdmCmd: {FFFFFF}Nu poti bana Fondatorii!"); format(string, sizeof(string), "{0066FF}AdmCmd: {FF0000}%s {FFFFFF}a incercat sa il baneze pe {FF0000}%s {FFFFFF}cu motivul: %s", sendername, giveplayer, (result)); ABroadCast(COLOR_LIGHTRED, string, 1); return 1; } if(strmatch(giveplayer, "Jimmi")) return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Ban: {FFFFFF}Fraiere, e server-ul meu."); new year, month,day; getdate(year, month, day); new hour, minute, second; gettime(hour, minute, second); format(string, sizeof(string), "Info: %s a primit ban de la %s, motiv: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year); BanLog(string); format(string, sizeof(string), "{0066FF}Info: %s a primit ban de la %s, motiv: %s", giveplayer, sendername, (result)); SendClientMessageToAll(COLOR_LIGHTRED, string); PlayerInfo[giveplayerid][pReg] = -999; Update(giveplayerid, pRegisteredx); new playersip[256]; GetPlayerIp(giveplayerid,playersip,sizeof(playersip)); strmid(PlayerInfo[giveplayerid][pIP], playersip, 0, 100, 255); Update(giveplayerid, pIPx); new query[512]; format(query, sizeof(query) ,"INSERT INTO `banslog` (`BanID`,`user_banned`,`user_banned_ip`,`user_banner`,`ban_reason`,`ban_timestamp`,`ban_time`) VALUES ('','%s','%s','%s','%s',CURRENT_TIMESTAMP,'%d')", giveplayer, PlayerInfo[giveplayerid][pIP], sendername, result, 0); mysql_query(query); SendClientMessage(giveplayerid, COLOR_WHITE, "|__________________[BAN]__________________|"); format(string, sizeof(string), "Adminul care te-a banat : {FFFF00}%s",sendername); SendClientMessage(giveplayerid, COLOR_GREY, string); format(string, sizeof(string), "Motivul : {FFFF00}%s",(result)); SendClientMessage(giveplayerid, COLOR_GREY, string); format(string, sizeof(string), "Ban : {FFFF00}Permanent"); SendClientMessage(giveplayerid, COLOR_GREY, string); format(string, sizeof(string), "Data curenta : {FFFF00}%d-%d-%d",month,day,year); SendClientMessage(giveplayerid, COLOR_GREY, string); format(string, sizeof(string), "Data expirarii : {FFFF00}%d-%d-%d",month,day,year,hour, minute, second); SendClientMessage(giveplayerid, COLOR_GREY, string); format(string, sizeof(string), "Pentru unban intrati pe forumul nostru: WWW.Forummy.ro"); SendClientMessage(giveplayerid, COLOR_GREY, string); SendClientMessage(giveplayerid, COLOR_WHITE, "|__________________________________________|"); kicktimer[giveplayerid] = SetTimerEx( "KickS",100, true, "d", giveplayerid ); return 1; } } } } return 1; }
-
Da am rezolvat eu alea dar astea chiar nu stiu cum: C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(27069) : warning 213: tag mismatch C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(27069) : warning 213: tag mismatch C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(27069) : warning 206: redundant test: constant expression is non-zero C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(27071) : warning 213: tag mismatch C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(27076) : warning 213: tag mismatch C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(27081) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase Linia 27069 if(vOwner != 999 && vOwner != 0) Linia 27071 format(string, sizeof(string), " 1| Model: [%s] Valoare: [%d] Color1: [%d] Color2: [%d] Locked: [%d] Numar: [%s] ", vInfo[carkey][cDescription], vInfo[carkey][vPrice], vInfo[carkey][vColor1], vInfo[carkey][vColor2], vInfo[carkey][vLocked], vInfo[carkey][vPlate]); si 27076 format(string, sizeof(string), " 2| Model: [%s] Valoare: [%d] Color1: [%d] Color2: [%d] Locked: [%d] Numar: [%s] ", vInfo[carkey2][cDescription], vInfo[carkey2][vPrice], vInfo[carkey2][vColor1], vInfo[carkey2][vColor2], vInfo[carkey2][vLocked], vInfo[carkey2][vPlate]); iar 27078 format(string, sizeof(string), " 3| Model: [%s] Valoare: [%d] Color1: [%d] Color2: [%d] Locked: [%d] Numar: [%s] ", vInfo[carkey3][cDescription], vInfo[carkey3][vPrice], vInfo[carkey3][vColor1], vInfo[carkey3][vColor2], vInfo[carkey3][vLocked], vInfo[carkey3][vPlate]); Comanda aratand asa: //========================================[CMD /VHELP]========================================================// CMD:vhelp(playerid, params[]) { new string[256], cDescription; new carkey, carkey2, carkey3; new vOwner2, vOwner3; if(IsPlayerConnected(playerid)) SendClientMessage(playerid, COLOR_RED,"----------------------------------[Masini Personale]----------------------------------"); if(vOwner != 999 && vOwner != 0) { format(string, sizeof(string), " 1| Model: [%s] Valoare: [%d] Color1: [%d] Color2: [%d] Locked: [%d] Numar: [%s] ", vInfo[carkey][cDescription], vInfo[carkey][vPrice], vInfo[carkey][vColor1], vInfo[carkey][vColor2], vInfo[carkey][vLocked], vInfo[carkey][vPlate]); SendClientMessage(playerid, COLOR_GRAD5,string); } if(vOwner2 != 999 && vOwner2 != 0) { format(string, sizeof(string), " 2| Model: [%s] Valoare: [%d] Color1: [%d] Color2: [%d] Locked: [%d] Numar: [%s] ", vInfo[carkey2][cDescription], vInfo[carkey2][vPrice], vInfo[carkey2][vColor1], vInfo[carkey2][vColor2], vInfo[carkey2][vLocked], vInfo[carkey2][vPlate]); SendClientMessage(playerid, COLOR_GRAD5,string); } if(vOwner3 != 999 && vOwner3 != 0) { format(string, sizeof(string), " 3| Model: [%s] Valoare: [%d] Color1: [%d] Color2: [%d] Locked: [%d] Numar: [%s] ", vInfo[carkey3][cDescription], vInfo[carkey3][vPrice], vInfo[carkey3][vColor1], vInfo[carkey3][vColor2], vInfo[carkey3][vLocked], vInfo[carkey3][vPlate]); SendClientMessage(playerid, COLOR_GRAD5,string); } return 1; }
-
Problema intalnita (descriere):Am vrut sa fac o comanda /vhelp dar imi da eroar ela parametri.Am modificat totul cu informatile din loadpvehicles dar tot nu merge. Ero(area / rile) / warning-(ul / urile): C:\Users\Superman\Desktop\gamemodes\calu.pwn(27109) : warning 213: tag mismatch C:\Users\Superman\Desktop\gamemodes\calu.pwn(27109) : warning 213: tag mismatch C:\Users\Superman\Desktop\gamemodes\calu.pwn(27109) : warning 206: redundant test: constant expression is non-zero C:\Users\Superman\Desktop\gamemodes\calu.pwn(27111) : error 017: undefined symbol "carkey" C:\Users\Superman\Desktop\gamemodes\calu.pwn(27111) : error 001: expected token: ",", but found ";" C:\Users\Superman\Desktop\gamemodes\calu.pwn(27114) : error 017: undefined symbol "vOwner2" C:\Users\Superman\Desktop\gamemodes\calu.pwn(27116) : error 017: undefined symbol "carkey2" C:\Users\Superman\Desktop\gamemodes\calu.pwn(27116) : error 001: expected token: ",", but found ";" C:\Users\Superman\Desktop\gamemodes\calu.pwn(27119) : error 017: undefined symbol "vOwner3" C:\Users\Superman\Desktop\gamemodes\calu.pwn(27121) : error 017: undefined symbol "carkey3" C:\Users\Superman\Desktop\gamemodes\calu.pwn(27121) : error 001: expected token: ",", but found ";" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 8 Errors. Liniile de cod / sursa / script-ul(obligatoriu): //========================================[CMD /VHELP]========================================================// CMD:vhelp(playerid, params[]) { new string[256], cDescription; if(IsPlayerConnected(playerid)) SendClientMessage(playerid, COLOR_RED,"----------------------------------[Masini Personale]----------------------------------"); if(vOwner != 999 && vOwner != 0) { format(string, sizeof(string), " 1| Model: [%s] Valoare: [%d] Color1: [%d] Color2: [%d] Locked: [%d] Numar: [%s] ", vInfo[carkey][cDescription], vInfo[carkey][cValue], vInfo[carkey][cColorOne], vInfo[carkey][cColorTwo], vInfo[carkey][vLocked], vInfo[carkey][cNum],); SendClientMessage(playerid, COLOR_GRAD5,string); } if(vOwner2 != 999 && vOwner2 != 0) { format(string, sizeof(string), " 2| Model: [%s] Valoare: [%d] Color1: [%d] Color2: [%d] Locked: [%d] Numar: [%s] ", vInfo[carkey2][cDescription], vInfo[carkey2][cValue], vInfo[carkey2][cColorOne], vInfo[carkey2][cColorTwo], vInfo[carkey2][vLocked], vInfo[carkey2][cNum],); SendClientMessage(playerid, COLOR_GRAD5,string); } if(vOwner3 != 999 && vOwner3 != 0) { format(string, sizeof(string), " 3| Model: [%s] Valoare: [%d] Color1: [%d] Color2: [%d] Locked: [%d] Numar: [%s] ", vInfo[carkey3][cDescription], vInfo[carkey3][cValue], vInfo[carkey3][cColorOne], vInfo[carkey3][cColorTwo], vInfo[carkey3][vLocked], vInfo[carkey3][cNum],); SendClientMessage(playerid, COLOR_GRAD5,string); } return 1; }si stock LoadPVehicles() { new result[24], index = 0; TuneTimer = 10; mysql_query("SELECT * FROM `vehicles` ORDER BY `vehicles`.`CarID` ASC"); mysql_store_result(); while(mysql_retrieve_row()) { // LOADING DATA \====================================================================/ index++; mysql_get_field("CarID", result); vInfo[index][vCariD] = strval(result); mysql_get_field("Model", result); vInfo[index][vModel] = strval(result); mysql_get_field("Color1", result); vInfo[index][vColor1] = strval(result); mysql_get_field("Color2", result); vInfo[index][vColor2] = strval(result); mysql_get_field("Price", result); vInfo[index][vPrice] = strval(result); mysql_get_field("Owner", result); strmid(vInfo[index][vOwner], result, false, strlen(result), 24); mysql_get_field("vPosX", result); vInfo[index][vPosX] = floatstr(result); mysql_get_field("vPosY", result); vInfo[index][vPosY] = floatstr(result); mysql_get_field("vPosZ", result); vInfo[index][vPosZ] = floatstr(result); mysql_get_field("vPosA", result); vInfo[index][vPosA] = floatstr(result); mysql_get_field("Plate", result); strmid(vInfo[index][vPlate], result, false, strlen(result), 24); mysql_get_field("PaintJ", result); vInfo[index][vPaintJ] = strval(result); mysql_get_field("Locked", result); vInfo[index][vLocked] = strval(result); mysql_get_field("Towed", result); vInfo[index][vTowed] = strval(result); mysql_get_field("PlateModel", result); vInfo[index][vPlateMod] = strval(result); mysql_get_field("Registred", result); vInfo[index][vReg] = strval(result); mysql_get_field("Vechime", result); vInfo[index][vVechime] = strval(result); mysql_get_field("vMod1", result); vMods[index][0] = strval(result); mysql_get_field("vMod2", result); vMods[index][1] = strval(result); mysql_get_field("vMod3", result); vMods[index][2] = strval(result); mysql_get_field("vMod4", result); vMods[index][3] = strval(result); mysql_get_field("vMod5", result); vMods[index][4] = strval(result); mysql_get_field("vMod6", result); vMods[index][5] = strval(result); mysql_get_field("vMod7", result); vMods[index][6] = strval(result); mysql_get_field("vMod8", result); vMods[index][7] = strval(result); mysql_get_field("vMod9", result); vMods[index][8] = strval(result); mysql_get_field("vMod10", result); vMods[index][9] = strval(result); mysql_get_field("vMod11", result); vMods[index][10] = strval(result); mysql_get_field("vMod12", result); vMods[index][11] = strval(result); mysql_get_field("vMod13", result); vMods[index][12] = strval(result); mysql_get_field("vMod14", result); vMods[index][13] = strval(result); // CREATING VEHICLE \====================================================================/ new i = index; if(vInfo[i][vPosX] == 0.0 && vInfo[i][vPosY] == 0.0 && vInfo[i][vPosZ] == 0.0) { ++ Total_Veh_Created; /*INI_Close();*/ continue; } new vCarID = CreateVehicle(vInfo[i][vModel], vInfo[i][vPosX], vInfo[i][vPosY], vInfo[i][vPosZ], vInfo[i][vPosA], vInfo[i][vColor1], vInfo[i][vColor2], 500000); SetVehicleNumberPlate(vCarID, vInfo[i][vPlate]); ChangeVehiclePaintjob(vCarID, vInfo[i][vPaintJ]); for(new iMod = 0; iMod < MAX_VEH_MODS; ++iMod) { if(vMods[index][iMod] > 0) { AddVehicleComponent(vCarID, vMods[index][0]); AddVehicleComponent(vCarID, vMods[index][1]); AddVehicleComponent(vCarID, vMods[index][2]); AddVehicleComponent(vCarID, vMods[index][3]); AddVehicleComponent(vCarID, vMods[index][4]); AddVehicleComponent(vCarID, vMods[index][5]); AddVehicleComponent(vCarID, vMods[index][6]); AddVehicleComponent(vCarID, vMods[index][7]); AddVehicleComponent(vCarID, vMods[index][8]); AddVehicleComponent(vCarID, vMods[index][9]); AddVehicleComponent(vCarID, vMods[index][10]); AddVehicleComponent(vCarID, vMods[index][11]); AddVehicleComponent(vCarID, vMods[index][12]); AddVehicleComponent(vCarID, vMods[index][13]); } } Total_Veh_Created = vInfo[index][vCariD]; // MYSQL PART \====================================================================/ //new query[512]; //format(query, sizeof(query),"UPDATE `vehicles` SET `CarID` = '%d' WHERE `CarID` = '%d';", index, vInfo[index][vCariD]); //mysql_query(string); } mysql_free_result(); printf("%d cars created!", Total_Veh_Created); return 1; } Imagini / Video (optional):- Ati incercat sa rezolvati singur?:da
-
Pai si atunci de ce imi ia banii.Doar ai vazut in video
-
redundant test: constant expression is non-zero
Jimmi replied to Jimmi's question in Arhivă probleme
Am pus tot la fel la erori: CMD:vhelp(playerid, params[]) { new string[256], carkey, carinfo; if(IsPlayerConnected(playerid)) SendClientMessage(playerid, COLOR_RED,"----------------------------------[Masini Personale]----------------------------------"); if(vOwner != 999 && vOwner != 0) { format(string, sizeof(string), " 1| Model: [%s] Valoare: [%d] Color1: [%d] Color2: [%d] Locked: [%d] Numar: [%s] ", carinfo[carkey][cDescription], carinfo[carkey][cValue], carinfo[carkey][cColorOne], carinfo[carkey][cColorTwo], carinfo[carkey][vLocked], carinfo[carkey][cNum); SendClientMessage(playerid, COLOR_GRAD5,string); } if(vOwner2 != 999 && vOwner2 != 0) { format(string, sizeof(string), " 2| Model: [%s] Valoare: [%d] Color1: [%d] Color2: [%d] Locked: [%d] Numar: [%s] ", carinfo[carkey2][cDescription], carinfo[carkey2][cValue], carinfo[carkey2][cColorOne], carinfo[carkey2][cColorTwo], carinfo[carkey2][vLocked], carinfo[carkey2][cNum]); SendClientMessage(playerid, COLOR_GRAD5,string); } if(vOwner3 != 999 && vOwner3 != 0) { format(string, sizeof(string), " 3| Model: [%s] Valoare: [%d] Color1: [%d] Color2: [%d] Locked: [%d] Numar: [%s] ", carinfo[carkey3][cDescription], carinfo[carkey3][cValue], carinfo[carkey3][cColorOne], carinfo[carkey3][cColorTwo], carinfo[carkey3][vLocked], carinfo[carkey3][cNum]); SendClientMessage(playerid, COLOR_GRAD5,string); } return 1; }si erorile C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26975) : warning 213: tag mismatch C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26975) : warning 213: tag mismatch C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26975) : warning 206: redundant test: constant expression is non-zero C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26977) : error 028: invalid subscript (not an array or too many subscripts): "carinfo" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26977) : warning 215: expression has no effect C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26977) : error 001: expected token: ";", but found "]" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26977) : error 029: invalid expression, assumed zero C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26977) : 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. -
redundant test: constant expression is non-zero
Jimmi replied to Jimmi's question in Arhivă probleme
asta format(string, sizeof(string), " 1| Model: [%s] Valoare: [%d] Color1: [%d] Color2: [%d] Locked: [%d] Numar: [%s] ", carinfo[carkey][cDescription], carinfo[carkey][cValue], carinfo[carkey][cColorOne], carinfo[carkey][cColorTwo], carinfo[carkey][vLocked], carinfo[carkey][cNum],); -
Problema intalnita (descriere):Am incercat sa fac o comanda pe zcmd si m-am ales cu alte erori.Nu am folosit parametrii sscanf pentru ca stiam ca se folosesc la comenzile foarte mari. Ero(area / rile) / warning-(ul / urile): C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26975) : warning 213: tag mismatch C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26975) : warning 213: tag mismatch C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26975) : warning 206: redundant test: constant expression is non-zero C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26977) : error 028: invalid subscript (not an array or too many subscripts): "carinfo" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26977) : warning 215: expression has no effect C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26977) : error 001: expected token: ";", but found "]" C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26977) : error 029: invalid expression, assumed zero C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26977) : 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. Liniile de cod / sursa / script-ul(obligatoriu): Imagini / Video (optional):- Ati incercat sa rezolvati singur?:Da si tot da erori. //========================================[CMD /VHELP]========================================================// CMD:vhelp(playerid, params[]) { new string[256], carkey, carinfo; if(IsPlayerConnected(playerid)) SendClientMessage(playerid, COLOR_RED,"----------------------------------[Masini Personale]----------------------------------"); if(vOwner != 999 && vOwner != 0) { format(string, sizeof(string), " 1| Model: [%s] Valoare: [%d] Color1: [%d] Color2: [%d] Locked: [%d] Numar: [%s] ", carinfo[carkey][cDescription], carinfo[carkey][cValue], carinfo[carkey][cColorOne], carinfo[carkey][cColorTwo], carinfo[carkey][vLocked], carinfo[carkey][cNum],); SendClientMessage(playerid, COLOR_GRAD5,string); } if(vOwner2 != 999 && vOwner2 != 0) { format(string, sizeof(string), " 2| Model: [%s] Valoare: [%d] Color1: [%d] Color2: [%d] Locked: [%d] Numar: [%s] ", carinfo[carkey2][cDescription], carinfo[carkey2][cValue], carinfo[carkey2][cColorOne], carinfo[carkey2][cColorTwo], carinfo[carkey2][vLocked], carinfo[carkey2][cNum],); SendClientMessage(playerid, COLOR_GRAD5,string); } if(vOwner3 != 999 && vOwner3 != 0) { format(string, sizeof(string), " 3| Model: [%s] Valoare: [%d] Color1: [%d] Color2: [%d] Locked: [%d] Numar: [%s] ", carinfo[carkey3][cDescription], carinfo[carkey3][cValue], carinfo[carkey3][cColorOne], carinfo[carkey3][cColorTwo], carinfo[carkey3][vLocked], carinfo[carkey3][cNum],); SendClientMessage(playerid, COLOR_GRAD5,string); } return 1; }
-
am zis ca sunt mai explicit.Habar nu am. ceva cu exit cred.Asta am in comanda /exit [ for(new i = 0; i < sizeof(BizzInfo); i++) { //printf("Bizz :%d",i); if (PlayerToPoint(3, playerid,BizzInfo[GetPlayerVirtualWorld(playerid)][bExitX], BizzInfo[GetPlayerVirtualWorld(playerid)][bExitY], BizzInfo[GetPlayerVirtualWorld(playerid)][bExitZ])) { SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerPos(playerid,BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceX],BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceY],BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceZ]); PlayerInfo[playerid][pLocal] = 255; SetPlayerVirtualWorld(playerid, 0); } } return 1;
-
uite-te in video de mai sus
-
Mersi dar tot sunt probleme.Daca dau /enter imi trage banii cand ies din biz nu cand intru. for(new i = 0; i < sizeof(BizzInfo); i++) { CheatTimer[playerid] = 3; if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ])) { if(!IsACop(playerid) && i == 3) { SendClientMessage(playerid, COLOR_GREY, " Doar pentru politisti !"); return 1; } if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerCash(playerid) >= BizzInfo[i][bEntranceCost]) { //if(PlayerInfo[playerid][pPbiskey] != i) { if(BizzInfo[i][bLocked] == 1) { GameTextForPlayer(playerid, "~r~Inchis", 5000, 1); return 1; } if(GetPlayerInterior(playerid) == 17) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}24/7: {FFFFFF}Foloseste /buy pentru a cumpara ceva!"); if(GetPlayerInterior(playerid) == 3) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Sex Shop: {FFFFFF}Foloseste /buy pentru a cumpara ceva!"); if(GetPlayerInterior(playerid) == 10) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Burger Shot: {FFFFFF}Scrie /eat pentru a manca ceva!"); if(GetPlayerInterior(playerid) == 5) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Well Stacked Pizza: {FFFFFF}Scrie /eat pentru a manca ceva!"); if(GetPlayerInterior(playerid) == 9) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Cluckin' Bell: {FFFFFF}Scrie /eat pentru a manca ceva!"); GivePlayerMoneyEx(playerid,-BizzInfo[i][bEntranceCost]); format(string, sizeof(string), "~r~-$%d~n~~w~scrie /exit~n~pentru a iesi", BizzInfo[i][bEntranceCost]); BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost]; ExtortionBiz(i, BizzInfo[i][bEntranceCost]); BizzInfo[i][bProducts]--; OnPropUpdate(); GameTextForPlayer(playerid, string, 5000, 3); } SetPlayerInterior(playerid,BizzInfo[i][bInterior]); SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]); SetPlayerVirtualWorld(playerid, i); PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior]; PlayerInfo[playerid][pLocal] = i+99; new dood[MAX_PLAYER_NAME]; GetPlayerName(playerid, dood, sizeof(dood)); format(string, sizeof(string), "%s payed $%d to enter biz %d", dood, BizzInfo[i][bEntranceCost], i); printf("%s", string); PayLog(string); } else { GameTextForPlayer(playerid, "~r~Nu ai destui bani", 5000, 1); } } }
-
Unde mai exact mai, mai pierdut de tot.
-
Nu mai.Ma refer asa am si eu si tot nu iti trage banii
-
Asa am si eu sau poate nu zaresc corect unde e gresit.
-
Problema intalnita (descriere):Am rezolvat o problema la bizfee.Daca dau pe ENTER sa intru in biz imi trage dar nu ma baga in biz.Poate dupa cateva incercari, iar daca dau /enter imi i-a banii cand ies din biz nu cand intru.Cum pot face sa imi i-a banii cand intru. Ero(area / rile) / warning-(ul / urile):- Liniile de cod / sursa / script-ul(obligatoriu): Imagini / Video (optional):Aici cu bug-ul:https://www.youtube.com/watch?v=QO6SRxuSHmM&feature=youtu.be Ati incercat sa rezolvati singur?:Da for(new i = 0; i < sizeof(BizzInfo); i++) { CheatTimer[playerid] = 3; if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ])) { if(!IsACop(playerid) && i == 3) { SendClientMessage(playerid, COLOR_GREY, " Doar pentru politisti !"); return 1; } if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerCash(playerid) >= BizzInfo[i][bEntranceCost]) { //if(PlayerInfo[playerid][pPbiskey] != i) { if(BizzInfo[i][bLocked] == 1) { GameTextForPlayer(playerid, "~r~Inchis", 5000, 1); return 1; } if(GetPlayerInterior(playerid) == 17) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}24/7: {FFFFFF}Foloseste /buy pentru a cumpara ceva!"); if(GetPlayerInterior(playerid) == 3) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Sex Shop: {FFFFFF}Foloseste /buy pentru a cumpara ceva!"); if(GetPlayerInterior(playerid) == 10) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Burger Shot: {FFFFFF}Scrie /eat pentru a manca ceva!"); if(GetPlayerInterior(playerid) == 5) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Well Stacked Pizza: {FFFFFF}Scrie /eat pentru a manca ceva!"); if(GetPlayerInterior(playerid) == 9) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Cluckin' Bell: {FFFFFF}Scrie /eat pentru a manca ceva!"); GivePlayerMoneyEx(playerid,-BizzInfo[i][bEntranceCost]); format(string, sizeof(string), "~r~-$%d~n~~w~scrie /exit~n~pentru a iesi", BizzInfo[i][bEntranceCost]); BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost]; ExtortionBiz(i, BizzInfo[i][bEntranceCost]); BizzInfo[i][bProducts]--; OnPropUpdate(); GameTextForPlayer(playerid, string, 5000, 3); } SetPlayerInterior(playerid,BizzInfo[i][bInterior]); SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]); SetPlayerVirtualWorld(playerid, i); PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior]; PlayerInfo[playerid][pLocal] = i+99; new dood[MAX_PLAYER_NAME]; GetPlayerName(playerid, dood, sizeof(dood)); format(string, sizeof(string), "%s payed $%d to enter biz %d", dood, BizzInfo[i][bEntranceCost], i); printf("%s", string); PayLog(string); } else { GameTextForPlayer(playerid, "~r~Nu ai destui bani", 5000, 1); } } } si aici: for(new i = 0; i < sizeof(BizzInfo); i++) { if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ])) { //printf("Found House :%d",i); if(!IsACop(playerid) && i == 3) { SendClientMessage(playerid, COLOR_GREY, " Loc rezervat Politiei Romane !"); return 1; } if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerCash(playerid) >= BizzInfo[i][bEntranceCost]) { if(PlayerInfo[playerid][pPbiskey] != i) { if(BizzInfo[i][bLocked] == 1) { GameTextForPlayer(playerid, "~r~Inchis", 5000, 1); return 1; } if(BizzInfo[i][bProducts] == 0) { GameTextForPlayer(playerid, "~r~Stoc epuizat", 5000, 1); return 1; } GivePlayerMoneyEx(playerid,-BizzInfo[i][bEntranceCost]); format(string, sizeof(string), "~r~-$%d~n~~w~scrie /exit~n~pentru a iesi", BizzInfo[i][bEntranceCost]); BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost]; ExtortionBiz(i, BizzInfo[i][bEntranceCost]); BizzInfo[i][bProducts]--; OnPropUpdate(); GameTextForPlayer(playerid, string, 5000, 3); } SetPlayerInterior(playerid,BizzInfo[i][bInterior]); SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]); SetPlayerVirtualWorld(playerid, i); PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior]; PlayerInfo[playerid][pLocal] = i+99; new dood[MAX_PLAYER_NAME]; GetPlayerName(playerid, dood, sizeof(dood)); format(string, sizeof(string), "%s payed $%d to enter biz %d", dood, BizzInfo[i][bEntranceCost], i); printf("%s", string); PayLog(string); if(GetPlayerInterior(playerid) == 17) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}24/7: {FFFFFF}Scrie /buy pentru a cumpara ceva!"); if(GetPlayerInterior(playerid) == 3) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Sex Shop: {FFFFFF}Scrie /buy pentru a cumpara ceva!"); if(GetPlayerInterior(playerid) == 10) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Burger Shot: {FFFFFF}Scrie /eat pentru a manca ceva!"); if(GetPlayerInterior(playerid) == 5) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Well Stacked Pizza: {FFFFFF}Scrie /eat pentru a manca ceva!"); if(GetPlayerInterior(playerid) == 9) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Cluckin' Bell: {FFFFFF}Scrie /eat pentru a manca ceva!"); //PlayerInfo[playerid][pLocal] = i; } else { GameTextForPlayer(playerid, "~r~Nu ai destui bani", 5000, 1); } } } si aici parte din comanda /enter for(new i = 0; i < sizeof(BizzInfo); i++) { if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ])) { //printf("Found House :%d",i); if(!IsACop(playerid) && i == 3) { SendClientMessage(playerid, COLOR_GREY, " Loc rezervat Politiei Romane !"); return 1; } if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerCash(playerid) >= BizzInfo[i][bEntranceCost]) { if(PlayerInfo[playerid][pPbiskey] != i) { if(BizzInfo[i][bLocked] == 1) { GameTextForPlayer(playerid, "~r~Inchis", 5000, 1); return 1; } if(BizzInfo[i][bProducts] == 0) { GameTextForPlayer(playerid, "~r~Stoc epuizat", 5000, 1); return 1; } GivePlayerMoneyEx(playerid,-BizzInfo[i][bEntranceCost]); format(string, sizeof(string), "~r~-$%d~n~~w~scrie /exit~n~pentru a iesi", BizzInfo[i][bEntranceCost]); BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost]; ExtortionBiz(i, BizzInfo[i][bEntranceCost]); BizzInfo[i][bProducts]--; OnPropUpdate(); GameTextForPlayer(playerid, string, 5000, 3); } SetPlayerInterior(playerid,BizzInfo[i][bInterior]); SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]); SetPlayerVirtualWorld(playerid, i); PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior]; PlayerInfo[playerid][pLocal] = i+99; new dood[MAX_PLAYER_NAME]; GetPlayerName(playerid, dood, sizeof(dood)); format(string, sizeof(string), "%s payed $%d to enter biz %d", dood, BizzInfo[i][bEntranceCost], i); printf("%s", string); PayLog(string); if(GetPlayerInterior(playerid) == 17) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}24/7: {FFFFFF}Scrie /buy pentru a cumpara ceva!"); if(GetPlayerInterior(playerid) == 3) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Sex Shop: {FFFFFF}Scrie /buy pentru a cumpara ceva!"); if(GetPlayerInterior(playerid) == 10) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Burger Shot: {FFFFFF}Scrie /eat pentru a manca ceva!"); if(GetPlayerInterior(playerid) == 5) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Well Stacked Pizza: {FFFFFF}Scrie /eat pentru a manca ceva!"); if(GetPlayerInterior(playerid) == 9) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Cluckin' Bell: {FFFFFF}Scrie /eat pentru a manca ceva!"); //PlayerInfo[playerid][pLocal] = i; } else { GameTextForPlayer(playerid, "~r~Nu ai destui bani", 5000, 1); } } }
-
Merge acuma se actualizeaza in baza de date dar scrisul de pe server ramane aceleasi si nu iti trage banii acuma cand intri intr-un biz/sbiz. Textul ala: public UpdateBizzText(bizid) { new string[512]; if(BizzInfo[bizid][bOwned] == 0) format(string, sizeof(string), "{00BC00}De Vanzare!\nNume: {F6F6F6}%s\n{00BC00}Detinator: {F6F6F6}-\n{00BC00}Pret: {F6F6F6}$%d\n{00BC00}Level: {F6F6F6}%d\n{00BC00}ID-ul afacerii: {F6F6F6}%d", BizzInfo[bizid][bMessage], BizzInfo[bizid][bBuyPrice], BizzInfo[bizid][bLevelNeeded], bizid); if(BizzInfo[bizid][bOwned] == 1) format(string, sizeof(string), "{00BC00}Nume: {F6F6F6}%s\n{00BC00}Detinator: {F6F6F6}%s\n{00BC00}Extortion: {F6F6F6}%s\n{00BC00}Intrare: {F6F6F6}$%d\n{00BC00}ID-ul afacerii: {F6F6F6}%d", BizzInfo[bizid][bMessage], BizzInfo[bizid][bOwner], BizzInfo[bizid][bExtortion], BizzInfo[bizid][bEntranceCost], bizid); Update3DTextLabelText(BizzLabel[bizid], COLOR_WHITE, string); return 1; } public UpdateSBizzText(bizid) { new string[512]; if(SBizzInfo[bizid][sbOwned] == 0) format(string, sizeof(string), "{00BC00}De Vanzare!\nNume: {F6F6F6}%s\n{00BC00}Detinator: {F6F6F6}-\n{00BC00}Pret: {F6F6F6}$%d\n{00BC00}Level: {F6F6F6}%d\n{00BC00}ID-ul afacerii S: {F6F6F6}%d", SBizzInfo[bizid][sbMessage], SBizzInfo[bizid][sbBuyPrice], SBizzInfo[bizid][sbLevelNeeded], bizid); if(SBizzInfo[bizid][sbOwned] == 1) format(string, sizeof(string), "{00BC00}Nume: {F6F6F6}%s\n{00BC00}Detinator: {F6F6F6}%s\n{00BC00}Extortion: {F6F6F6}%s\n{00BC00}Intrare: {F6F6F6}$%d\n{00BC00}ID-ul afacerii S: {F6F6F6}%d", SBizzInfo[bizid][sbMessage], SBizzInfo[bizid][sbOwner], SBizzInfo[bizid][sbExtortion], SBizzInfo[bizid][sbEntranceCost], bizid); Update3DTextLabelText(SBizzLabel[bizid], COLOR_WHITE, string); return 1; }in consola arata ca mi-a tras bani http://imgur.com/G52uMMO
-
Am modificat for(new b = 0; b < sizeof(BizzInfo); b++) { if(PlayerToPoint(2.0, playerid, BizzInfo[b][bEntranceX], BizzInfo[b][bEntranceY], BizzInfo[b][bEntranceZ]) && BizzInfo[b][bOwned] == 0) { if(PlayerInfo[playerid][pLevel] < BizzInfo[b][bLevelNeeded]) { format(string, sizeof(string), "Iti trebuie nivelul %d!",BizzInfo[b][bLevelNeeded]); SendClientMessage(playerid, COLOR_GRAD5, string); return 1; } if(GetPlayerCash(playerid) >= BizzInfo[b][bBuyPrice]) { PlayerInfo[playerid][pPbiskey]; BizzInfo[b][bOwned] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(BizzInfo[b][bOwner], sendername, 0, strlen(sendername), 255); GivePlayerMoneyEx(playerid,-BizzInfo[b][bBuyPrice]); PlayerInfo[playerid][pLocal] = b ; PlayerPlayMusic(playerid); SetPlayerInterior(playerid,BizzInfo[b][bInterior]); PlayerInfo[playerid][pInt] = BizzInfo[b][bInterior]; SendClientMessage(playerid, COLOR_WHITE, "Congratulations, on your new purchase."); SendClientMessage(playerid, COLOR_WHITE, "Type /help to review the new business help section."); new wakaname1[25],str1[128]; GetPlayerName(playerid,wakaname1,sizeof(wakaname1)); format(str1,sizeof(str1),"UPDATE players SET `Money`='%d',`Bizz`='%d' WHERE `username`='%s'",GetPlayerCash(playerid),PlayerInfo[playerid][pPbiskey],wakaname1); mysql_query(str1); format(str1,sizeof(str1),"UPDATE `bizz` SET `Owned`='1',`Owner`='%s' WHERE `ID`='%d'",BizzInfo[b][bOwner],b); mysql_query(str1); UpdateBizzText(b); SetPlayerVirtualWorld(playerid, b); MySQLCheckConnection(); print("Dude, s-a executat super ok comanda asta, totu mere bine si la mai multe"); return 1; } else return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Info: {FFFFFF}You don't have the cash for that."); } } } return 1; } si acuma la /stats ramane biz 255.Adica nu imi da niciun id.
-
Poftim.Cu asta cumperi si biz si sbiz: if(strcmp(cmd, "/buybiz", true) == 0) { if(IsPlayerConnected(playerid)) { new Float:oldposx, Float:oldposy, Float:oldposz; GetPlayerName(playerid, playername, sizeof(playername)); GetPlayerPos(playerid, oldposx, oldposy, oldposz); if(PlayerInfo[playerid][pPbiskey] != 255) { SendClientMessage(playerid, COLOR_WHITE, " Deja detii o afacere, scrie /sellbiz daca vrei sa o cumperi pe aceasta."); return 1; } for(new b = 1; b < sizeof(SBizzInfo); b++) { if(PlayerToPoint(2.0, playerid, SBizzInfo[b][sbEntranceX], SBizzInfo[b][sbEntranceY], SBizzInfo[b][sbEntranceZ]) && SBizzInfo[b][sbOwned] == 0) { if(PlayerInfo[playerid][pLevel] < SBizzInfo[b][sbLevelNeeded]) { format(string, sizeof(string), "{0066FF}Info: {FFFFFF}You must be level %d to purchase this.",SBizzInfo[b][sbLevelNeeded]); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } if(GetPlayerCash(playerid) >= SBizzInfo[b][sbBuyPrice]) { PlayerInfo[playerid][pPbiskey] = b+100; SBizzInfo[b][sbOwned] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(SBizzInfo[b][sbOwner], sendername, 0, strlen(sendername), 255); GivePlayerMoneyEx(playerid,-SBizzInfo[b][sbBuyPrice]); PlayerInfo[playerid][pLocal] = b ; PlayerPlayMusic(playerid); SetPlayerInterior(playerid,BizzInfo[b][bInterior]); PlayerInfo[playerid][pInt] = BizzInfo[b][bInterior]; SendClientMessage(playerid, COLOR_WHITE, "Congratulations, on your new purchase."); SendClientMessage(playerid, COLOR_WHITE, "Type /help to review the new business help section."); new wakaname1[25],str1[128]; GetPlayerName(playerid,wakaname1,sizeof(wakaname1)); format(str1,sizeof(str1),"UPDATE players SET `Money`='%d',`Bizz`='%d' WHERE `username`='%s'",GetPlayerCash(playerid),PlayerInfo[playerid][pPbiskey],wakaname1); mysql_query(str1); format(str1,sizeof(str1),"UPDATE `sbizz` SET `Owned`='1',`Owner`='%s' WHERE `ID`='%d'",SBizzInfo[b][sbOwner],b); mysql_query(str1); UpdateSBizzText(b); SetPlayerVirtualWorld(playerid, b); MySQLCheckConnection(); // facultativ. OnPropTextdrawUpdate(3,b); return 1; } else return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Info: {FFFFFF}You don't have the cash for that."); } } for(new b = 0; b < sizeof(BizzInfo); b++) { if(PlayerToPoint(2.0, playerid, BizzInfo[b][bEntranceX], BizzInfo[b][bEntranceY], BizzInfo[b][bEntranceZ]) && BizzInfo[b][bOwned] == 0) { if(PlayerInfo[playerid][pLevel] < BizzInfo[b][bLevelNeeded]) { format(string, sizeof(string), "Iti trebuie nivelul %d!",BizzInfo[b][bLevelNeeded]); SendClientMessage(playerid, COLOR_GRAD5, string); return 1; } if(GetPlayerCash(playerid) >= BizzInfo[b][bBuyPrice]) { PlayerInfo[playerid][pPbiskey] = b+100; BizzInfo[b][bOwned] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(BizzInfo[b][bOwner], sendername, 0, strlen(sendername), 255); GivePlayerMoneyEx(playerid,-BizzInfo[b][bBuyPrice]); PlayerInfo[playerid][pLocal] = b ; PlayerPlayMusic(playerid); SetPlayerInterior(playerid,BizzInfo[b][bInterior]); PlayerInfo[playerid][pInt] = BizzInfo[b][bInterior]; SendClientMessage(playerid, COLOR_WHITE, "Congratulations, on your new purchase."); SendClientMessage(playerid, COLOR_WHITE, "Type /help to review the new business help section."); new wakaname1[25],str1[128]; GetPlayerName(playerid,wakaname1,sizeof(wakaname1)); format(str1,sizeof(str1),"UPDATE players SET `Money`='%d',`Bizz`='%d' WHERE `username`='%s'",GetPlayerCash(playerid),PlayerInfo[playerid][pPbiskey],wakaname1); mysql_query(str1); format(str1,sizeof(str1),"UPDATE `bizz` SET `Owned`='1',`Owner`='%s' WHERE `ID`='%d'",BizzInfo[b][bOwner],b); mysql_query(str1); UpdateBizzText(b); SetPlayerVirtualWorld(playerid, b); MySQLCheckConnection(); print("Dude, s-a executat super ok comanda asta, totu mere bine si la mai multe"); return 1; } else return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Info: {FFFFFF}You don't have the cash for that."); } } } return 1; }