Mase
Membru-
Posts
8 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Everything posted by Mase
-
[pawn] new bstr[400]; for(new h = 0; h < sizeof(HouseInfo); h++) { if(HouseInfo[h][hOwned] == 0) { format(bstr, sizeof(bstr), "Aceasta casa este la Vanzare\nInfo: {FFFFFF}%s\n{06BF56}Pret: {FFFFFF}$ %d\n{06BF56}Level: {FFFFFF}%d\n{06BF56}pentru a cumpara casa foloseste /buyhouse.",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]); HouseInfo[h][hTextInfo] = Update3DTextLabelText(bstr,0x06BF56FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1); AddStaticPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); pickups++; } if(HouseInfo[h][hOwned] == 1) { if(HouseInfo[h][hRentabil] == 0) { format(bstr, sizeof(bstr), "House %d\nDetinator: {FFFFFF}%s\n{06BF56}Level:{FFFFFF}%d",h,HouseInfo[h][hOwner],HouseInfo[h][hLevel]); HouseInfo[h][hTextInfo] = Update3DTextLabelText(bstr,0x06BF56FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1); AddStaticPickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); //CreateDynamicMapIcon(HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancey],HouseInfo[h][hEntrancez],32,0); pickups++; } else { format(bstr, sizeof(bstr), "House %d\nDetinator: {FFFFFF}%s\n{06BF56}Level:{FFFFFF}%d\n{06BF56}Inchiriat:${FFFFFF}%d\nPentru a sta in chirie foloseste /rentroom.",h,HouseInfo[h][hOwner],HouseInfo[h][hLevel],HouseInfo[h][hRent]); HouseInfo[h][hTextInfo] = Update3DTextLabelText(bstr,0x06BF56FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1); AddStaticPickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); //CreateDynamicMapIcon(HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancey],HouseInfo[h][hEntrancez],32,0); pickups++; } } } for(new h = 0; h < sizeof(BizzInfo); h++) { if(BizzInfo[h][bOwned] == 0) { format(bstr, sizeof(bstr), "{0F90FA}Bizz %d\nAcest Business este la Vanzare\nNume: {FFFFFF}%s\n{0F90FA}Pret: {FFFFFF}$ %d\n{0F90FA}Level: {FFFFFF}%d\n{0F90FA}Pentru a cumpara bizzul foloseste /buybiz",h,BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]); BizzInfo[h][bTextInfo] = Update3DTextLabelText(bstr,0x0F90FAFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,15,0,1); AddStaticPickup(1274, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]); pickups++; } if(BizzInfo[h][bOwned] == 1) { format(bstr, sizeof(bstr), "{0F90FA}Bizz %d\n{FFFFFF}%s\n{0F90FA}Detinator Bizz:{FFFFFF}%s\n{0F90FA}Level: {FFFFFF}%d\n{0F90FA}Intrare: {FFFFFF}%d\n{0F90FA}Foloseste /enter pentru a intra.",h,BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bLevelNeeded],BizzInfo[h][bEntranceCost]); BizzInfo[h][bTextInfo] = Update3DTextLabelText(bstr,0xFFFFFFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,15,0,1); AddStaticPickup(1239, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]); pickups++; } } for(new h = 0; h < sizeof(SBizzInfo); h++) { if(SBizzInfo[h][sbOwned] == 0) { format(bstr, sizeof(bstr), "{0F90FA}SBizz %d\nAcest SBusiness este la Vanzare\nNume: {FFFFFF}%s\n{0F90FA}Pret:{FFFFFF}$ %d\n{0F90FA}Level: {FFFFFF}%d\n{0F90FA}Pentru a cumpara sbizzul foloseste /buybiz.",h,SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]); SBizzInfo[h][sbTextInfo] = Update3DTextLabelText(bstr,0x0F90FAFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,15,0,1); AddStaticPickup(1274, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]); pickups++; } if(SBizzInfo[h][sbOwned] == 1) { format(bstr, sizeof(bstr), "{0F90FA}SBizz %d\n{FFFFFF}%s\n{0F90FA}Detinator Sbizz:{FFFFFF}%s\n{0F90FA}Level: {FFFFFF}%d\n{0F90FA}Intrare:{FFFFFF}%d",h,SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbEntranceCost]); SBizzInfo[h][sbTextInfo] = Update3DTextLabelText(bstr,0xFFFFFFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,15,0,1); AddStaticPickup(1239, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]); pickups++; } }[/pawn] Errori [pawn]D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50183) : error 035: argument type mismatch (argument 1) D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50183) : warning 213: tag mismatch D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50192) : error 035: argument type mismatch (argument 1) D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50192) : warning 213: tag mismatch D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50200) : error 035: argument type mismatch (argument 1) D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50200) : warning 213: tag mismatch D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50212) : error 035: argument type mismatch (argument 1) D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50212) : warning 213: tag mismatch D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50219) : error 035: argument type mismatch (argument 1) D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50219) : warning 213: tag mismatch D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50229) : error 035: argument type mismatch (argument 1) D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50229) : warning 213: tag mismatch D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50236) : error 035: argument type mismatch (argument 1) D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50236) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 7 Errors.[/pawn]
-
Nick: Mase Problema: Cand dau buyhouse / buybiz imi arata ca este cumparata dar imi apare si ca poate fi de vanzare, si nu sunt 2 case/biz-uri in acelasi loc, am verificat Erori / warnings: - Lini/script: Nu cred ca este nevoie Ai incercat sa rezolvi singur ?: Da [pawn] new bstr[400]; for(new h = 0; h < sizeof(HouseInfo); h++) { if(HouseInfo[h][hOwned] == 0) { format(bstr, sizeof(bstr), "Aceasta casa este la Vanzare\nInfo: {FFFFFF}%s\n{06BF56}Pret: {FFFFFF}$ %d\n{06BF56}Level: {FFFFFF}%d\n{06BF56}pentru a cumpara casa foloseste /buyhouse.",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]); HouseInfo[h][hTextInfo] = Create3DTextLabel(bstr,0x06BF56FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1); AddStaticPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); pickups++; } if(HouseInfo[h][hOwned] == 1) { if(HouseInfo[h][hRentabil] == 0) { format(bstr, sizeof(bstr), "House %d\nDetinator: {FFFFFF}%s\n{06BF56}Level:{FFFFFF}%d",h,HouseInfo[h][hOwner],HouseInfo[h][hLevel]); HouseInfo[h][hTextInfo] = Create3DTextLabel(bstr,0x06BF56FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1); AddStaticPickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); //CreateDynamicMapIcon(HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancey],HouseInfo[h][hEntrancez],32,0); pickups++; } else { format(bstr, sizeof(bstr), "House %d\nDetinator: {FFFFFF}%s\n{06BF56}Level:{FFFFFF}%d\n{06BF56}Inchiriat:${FFFFFF}%d\nPentru a sta in chirie foloseste /rentroom.",h,HouseInfo[h][hOwner],HouseInfo[h][hLevel],HouseInfo[h][hRent]); HouseInfo[h][hTextInfo] = Create3DTextLabel(bstr,0x06BF56FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1); AddStaticPickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); //CreateDynamicMapIcon(HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancey],HouseInfo[h][hEntrancez],32,0); pickups++; } } } for(new h = 0; h < sizeof(BizzInfo); h++) { if(BizzInfo[h][bOwned] == 0) { format(bstr, sizeof(bstr), "{0F90FA}Bizz %d\nAcest Business este la Vanzare\nNume: {FFFFFF}%s\n{0F90FA}Pret: {FFFFFF}$ %d\n{0F90FA}Level: {FFFFFF}%d\n{0F90FA}Pentru a cumpara bizzul foloseste /buybiz",h,BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]); BizzInfo[h][bTextInfo] = Create3DTextLabel(bstr,0x0F90FAFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,15,0,1); AddStaticPickup(1274, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]); pickups++; } if(BizzInfo[h][bOwned] == 1) { format(bstr, sizeof(bstr), "{0F90FA}Bizz %d\n{FFFFFF}%s\n{0F90FA}Detinator Bizz:{FFFFFF}%s\n{0F90FA}Level: {FFFFFF}%d\n{0F90FA}Intrare: {FFFFFF}%d\n{0F90FA}Foloseste /enter pentru a intra.",h,BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bLevelNeeded],BizzInfo[h][bEntranceCost]); BizzInfo[h][bTextInfo] = Create3DTextLabel(bstr,0xFFFFFFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,15,0,1); AddStaticPickup(1239, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]); pickups++; } } for(new h = 0; h < sizeof(SBizzInfo); h++) { if(SBizzInfo[h][sbOwned] == 0) { format(bstr, sizeof(bstr), "{0F90FA}SBizz %d\nAcest SBusiness este la Vanzare\nNume: {FFFFFF}%s\n{0F90FA}Pret:{FFFFFF}$ %d\n{0F90FA}Level: {FFFFFF}%d\n{0F90FA}Pentru a cumpara sbizzul foloseste /buybiz.",h,SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]); SBizzInfo[h][sbTextInfo] = Create3DTextLabel(bstr,0x0F90FAFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,15,0,1); AddStaticPickup(1274, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]); pickups++; } if(SBizzInfo[h][sbOwned] == 1) { format(bstr, sizeof(bstr), "{0F90FA}SBizz %d\n{FFFFFF}%s\n{0F90FA}Detinator Sbizz:{FFFFFF}%s\n{0F90FA}Level: {FFFFFF}%d\n{0F90FA}Intrare:{FFFFFF}%d",h,SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbEntranceCost]); SBizzInfo[h][sbTextInfo] = Create3DTextLabel(bstr,0xFFFFFFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,15,0,1); AddStaticPickup(1239, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]); pickups++; } }[/pawn]
-
Nick: Mase Problema: Am incercat fel si fel de comenzi [/kick] si [/ban]. Daca dau kick/ban cuiva apare in chat dar persoanei care primeste kick/ban nu-i apare.. Erori / warnings: Nu-mi da errori. Nu apare celui care a primit kick/ban Lini/script: mai jos Ai incercat sa rezolvi singur ?: Da Comenzile [pawn] if(strcmp(cmd, "/kick", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /kick [playerid/PartOfName] [reason]"); return 1; } giveplayerid = ReturnUser(tmp); if (PlayerInfo[playerid][pAdmin] >= 5) { 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[64]; 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, "USAGE: /kick [playerid/PartOfName] [reason]"); return 1; } new year, month,day; getdate(year, month, day); format(string, sizeof(string), "%s was kicked by Admin %s, reason: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year); KickLog(string); format(string, sizeof(string), "%s was kicked by Admin %s, reason: %s", giveplayer, sendername, (result)); SendClientMessageToAll(COLOR_LIGHTRED, string); Kick(giveplayerid); return 1; } } } else { format(string, sizeof(string), " %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }[/pawn] [pawn] if(strcmp(cmd, "/ban", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A6FF}>>{FFFFFF} Scrie: /ban [playerid/PartOfName] [reason]"); return 1; } giveplayerid = ReturnUser(tmp); if (PlayerInfo[playerid][pAdmin] >= 2) { 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[64]; 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, "{00A6FF}>>{FFFFFF} Scrie: /ban [playerid/PartOfName] [reason]"); return 1; } new year, month,day; getdate(year, month, day); format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year); BanLog(string); format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s", giveplayer, sendername, (result)); SendClientMessageToAll(COLOR_LIGHTRED, string); PlayerInfo[giveplayerid][pAdmin] = PlayerInfo[giveplayerid][pLevel]; PlayerInfo[giveplayerid][pLevel] = -999; new plrIP[16]; GetPlayerIp(giveplayerid,plrIP, sizeof(plrIP)); SendClientMessage(giveplayerid,COLOR_DBLUE,"|{FFFFFF}|-------------|{FF0000}[bAN INFO]{FFFFFF}|-------------|{FF0000}|"); format(string, sizeof(string), "Numele tau este: %s.",giveplayer); SendClientMessage(giveplayerid, COLOR_WHITE, string); format(string, sizeof(string), "IP-ul tau este: %s.",plrIP); SendClientMessage(giveplayerid, COLOR_WHITE, string); format(string, sizeof(string), "Ai fost banat de: %s.",sendername); SendClientMessage(giveplayerid, COLOR_WHITE, string); format(string, sizeof(string), "Ai fost banat pentru urmatorul motiv: %s.",(result)); SendClientMessage(giveplayerid, COLOR_WHITE, string); format(string, sizeof(string), "Ai fost banat pe data de: %d/%d/%d (Ziua-Luna-Anul)",day,month,year); SendClientMessage(giveplayerid, COLOR_WHITE, string); SendClientMessage(giveplayerid,COLOR_DBLUE,"|{FFFFFF}|-------------|{FF0000}[bAN INFO]{FFFFFF}|-------------|{FF0000}|"); SendClientMessage(giveplayerid,COLOR_LIGHTRED,"[bAN INFO]: Poti face o cerere de unban pe forumul nostru.Forumul este www.{FFFFFF}[{4FD359}----{FFFFFF}.ro.Succes !"); SendClientMessage(giveplayerid,COLOR_WHITE,"[HINT]: Te sfatuim sa faci o poza la aceste informatii,si sa o postezi cand faci cerere unban.Apasa F8 pentru a face poza !"); Ban(giveplayerid); return 1; } }//not connected } else { format(string, sizeof(string), " %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }[/pawn]
-
M-ai am o problema, de exemplu: O cumpar de la DealerSHip, totul ok, o parchez , dau [/rac] ramane acolo, dar daca dau restart la server apare unde este DealerShip-ul.
-
Am adaugat si eu dintr-un GameMode Ready2play[sper ca am scris corect], in GameMode care il editez eu, sistem de masini cu dealership. totul merge perfect numai ca, cand se da restart se schimba id-urile la masini, si cand intru in masina nu-mi scrie ca masina este a lui " X ",ce pot face sa nu mai se schimbe id-urile? [pawn]new PersonalCarID = 161;[/pawn] // ma gandesc ca este de aici problema cu id-urile [pawn]public IsAnOwnableCar(vehicleid) { if(vehicleid >= PersonalCarID && vehicleid <= 2000) { return 1; } return 0; } if(IsAnOwnableCar(newcar)) { if(CarInfo[newcar][cOwned]==1) { format(string,sizeof(string),"Vehicle registered to %s",CarInfo[newcar][cOwner]); SendClientMessage(playerid, COLOR_BLUE, string); } } gLastCar[playerid] = newcar; gLastDriver[newcar] = playerid; }[/pawn]
-
Am si eu o problema cu dialog-urile cand dau Closed ma scoate dupa server . Am adaugat eu o comanda /cabinet si Am luat un FileScript dupa net cu DealerShip daca e nevoie il postez GameMode : Mioveni-RP FileScript : http://www.solidfiles.com/d/c43d8/ [ acesta , numai ca am mai adaugat eu 20 de masini pe langa cele de acolo ] Poze [ Sper sa se inteleaga ] 1.( cand apare dialogul ) : http://postimg.org/image/hoeih70yf/ 2. ( si cand dau Closed ) : http://postimg.org/image/7nht3zhup/ Si la /cabinet se intampla la fel [ /cabinet ] este pentru a lua arme din HQ
-
Am sa incerc si voi reveni cu edit
-
Salut am citit multe topicuri pe acesta tema , dar nu am reusit GameMode : Star-Gaming [ Veriune Veche ] Plugin : sunt .so Am mai citit ceva ca poate fi de La fileScript.