HasH
-
Posts
18 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by HasH
-
-
Am incercat sa fac sa apara si cate puncte premium am sa imi apara in shop si nu reusesc
C:UsersIonutgamemodesgmi.pwn(5682) : error 035: argument type mismatch (argument 6) Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
Linia
ShowPlayerDialog(playerid,2222,DIALOG_STYLE_LIST, "Premium points: {FFFF00}%d", pString,pointss, "Buy", "Exit");
if(strcmp(cmd, "/shop", true) == 0) { new pointss; playerVariables[playerid][pPremiumPoints] = pointss; new pString[ 2019 ]; pString[ 0 ] = EOS; strcat(pString, "{FFFFFF}Clear Warns - {FFFF00}10 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Premium Account - {FFFF00}30 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Clear Faction Punish - {FFFF00}15 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Change Nickname - {FFFF00}10 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Clear car 1 KM's - {FFFF00}25 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Clear car 2 KM's - {FFFF00}25 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Clear car 3 KM's - {FFFF00}10 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Clear car 4 KM's - {FFFF00}10 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Clan - {FFFF00}50 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}iPhone - {FFFF00}5 {FFFFFF}premium pointsn"); strcat(pString, "{FFFFFF}Hidden Color - {FFFF00}15 {FFFFFF}premium pointsn"); ShowPlayerDialog(playerid,2222,DIALOG_STYLE_LIST, "Premium points: {FFFF00}%d", pString,pointss, "Buy", "Exit"); return 1; }
-
if(strcmp(cmd, "/shop", true) == 0) { ShowPlayerDialog(playerid,2222,DIALOG_STYLE_LIST, "Premium Shop:", String_Shop(), "Buy", "Exit"); String_Shop() { new pString[ 2019 ]; pString[ 0 ] = EOS; strcat(pString, "Clear Warns - {FFFF00}10 premium pointsn"); strcat(pString, "Premium Account - {FFFF00}30 premium pointsn"); strcat(pString, "Clear Faction Punish - {FFFF00}15 premium pointsn"); strcat(pString, "Change Nickname - {FFFF00}10 premium pointsn"); strcat(pString, "Clear car 1 KM's - {FFFF00}25 premium pointsn"); strcat(pString, "Clear car 2 KM's - 25 premium pointsn"); strcat(pString, "Clear car 3 KM's - 10 premium pointsn"); strcat(pString, "Clear car 4 KM's - 10 premium pointsn"); strcat(pString, "Clan - 50 premium pointsn"): strcat(pString, "iPhone - 5 premium pointsn"); strcat(pString, "Hidden Color - 15 premium pointsn"); return pString; }
Am pus asa si imi da 26 de erori
-
Problema intalnita (descriere): Salut am incercat sa bag si eu culori la dialog si nu merge daca bag mai putine culori cu {} merge daca bag mai multe pe acel dialog numai merge
Ero(area / rile) / warning-(ul / urile):C:UsersIonutDesktopbuggedgamemodesgmi.pwn(5666) : error 075: input line too long (after substitutions) C:Usersgamemodesgmi.pwn(5667) : error 037: invalid string (possibly non-terminated string) C:Usersgamemodesgmi.pwn(5667) : error 017: undefined symbol "Exi" C:Usersgamemodesgmi.pwn(5668) : error 017: undefined symbol "t" C:Usersgamemodesgmi.pwn(5668) : warning 215: expression has no effect C:Usersgamemodesgmi.pwn(5668) : error 001: expected token: ";", but found ")" C:Usersgamemodesgmi.pwn(5668) : error 029: invalid expression, assumed zero C:Usersbuggedgamemodesgmi.pwn(5668) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 7 Errors.
Linia 5667
ShowPlayerDialog(playerid,2222,DIALOG_STYLE_LIST, "Premium Shop:", "Clear Warns - {FFFF00}10 premium pointsnPremium Account - {FFFF00}30 premium pointsnClear Faction Punish - {FFFF00}15 premium pointsnChange Nickname - {FFFF00}10 premium pointsnClear car 1 KM's - {FFFF00}25 premium pointsnClear car 2 KM's - 25 premium pointsnClear car 3 KM's - 10 premium pointsnClear car 4 KM's - 10 premium pointsnClan - 50 premium pointsniPhone - 5 premium pointsnHidden Color - 15 premium points", "Buy", "Exit");
Linia 5668
return 1;
Liniile de cod / sursa / script-ul:
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Da am incercat sa bag string la dialog si tot nu merge. -
gamemodesgmi.pwn(23275) : error 029: invalid expression, assumed zero gamemodesgmi.pwn(23275) : error 004: function "TimeForRob2" is not implemented Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors.
Tot asa imi da
Linia stock TimeForRob2()
am pus si la inceput forward TimeForRob2();
-
gamemodesgmi.pwn(23275) : error 029: invalid expression, assumed zero gamemodesgmi.pwn(23275) : error 004: function "TimeForRob" is not implemented Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors.
linia public TimeForRob()
Am pus forward la inceput
forward TimeForRob()
-
Ma poate ajuta cineva va rog?
-
public TimeForRob() { for(new x= 0; x < MAX_PLAYERS; x++) { if(IsPlayerConnected(x)) { if(RobTime[x] > 0) { RobTime[x]--; if(RobTime[x] == 1) { new house; house = random(systemVariables[houseCount]); SetPlayerCheckpoint(x, houseVariables[house][hHouseExteriorPos][0], houseVariables[house][hHouseExteriorPos][1], houseVariables[house][hHouseExteriorPos][2], 5.0); new randamount; randamount = 50000 * playerVariables[x][pLevel]; RobPrice[x] = randamount; playerVariables[x][pCheckpoint] = 8; SCM(x, COLOR_LIGHTBLUE, "Go to the checkpoint to receive your money!"); new wanted; wanted = random(10); if(wanted == 1) { SCM(x, COLOR_LIGHTBLUE, "The bank employees didn't see your face. You are not wanted!"); } else { playerVariables[x][pWarrants] = 6; format(playerVariables[x][pCrimeReason], 150, "%sarmed robberyn", playerVariables[x][pCrimeReason]); SetPlayerWantedLevel(x, 6); format(szMessage, sizeof(szMessage), "Dispatch: %s (%d) has comitted a crime: armed robbery. Reporter: unknown. W: +6 | New Wanted Level: %d", playerVariables[x][pNormalName], x,playerVariables[x][pWarrants]); sendDepartmentMessage(COLOR_RADIOCHAT, szMessage); } SetPlayerAttachedObject(x, 2, 1550, 1, -0.004022, -0.191353, -0.034982, 158.161407, 87.838058, 0.000000, 1.000000, 1.000000, 1.000000 ); playerVariables[x][pFreezeTime] = 0; playerVariables[x][pFreezeType] = 0; TogglePlayerControllable(x, 1); } } } } }
gamemodesgm.pwn(23275) : error 029: invalid expression, assumed zerogamemodesgm.pwn(23275) : error 004: function "TimeForRob" is not implementedgamemodesgm.pwn(23277) : warning 219: local variable "x" shadows a variable at a preceding levelPawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase2 Errors.23275 - public TimeForRob()Probabil este de la forward dar l-am pus23277 - for(new x= 0; x < MAX_PLAYERS; x++) -
Gireada , daca stiam nu mai postam aici .Multumesc pentru sfat.dar eu sunt incepator..
-
-
RobTime[playerid] = 11;
?
Asta este la comanda /rob
-
Problema intalnita (descriere):Salut , am si eu o problema legata de rob , cand ma duc in banca si dau rob imi apare un mesaj "
You are now robbing the business, wait 10 seconds to take the money!"
Si ramane asa nu se mai intampla nimic stau si o ora si raman blocat
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ulCMD:rob(playerid, params[]) { if(playerVariables[playerid][pWarrants] == 0) { if(playerVariables[playerid][pDonate] == 0) { if(playerVariables[playerid][pRobPoints] >= 10) { if((InBizz[playerid] >= 1) && (GetPlayerVirtualWorld(playerid) - BUSINESS_VIRTUAL_WORLD == InBizz[playerid])) { if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] != 1) { playerVariables[playerid][pRobPoints] -= 10; RobTime[playerid] = 11; SCM(playerid, COLOR_LIGHTBLUE, "You are now robbing the business, wait 10 seconds to take the money!"); playerVariables[playerid][pRob] = 1; TogglePlayerControllable(playerid, 0); playerVariables[playerid][pFreezeTime] = -1; playerVariables[playerid][pFreezeType] = 3; } } } } else if(playerVariables[playerid][pDonate] == 1) { if(playerVariables[playerid][pRobPoints] >= 8) { if((InBizz[playerid] >= 1) && (GetPlayerVirtualWorld(playerid) - BUSINESS_VIRTUAL_WORLD == InBizz[playerid])) { if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] != 1) { playerVariables[playerid][pRobPoints] -= 8; RobTime[playerid] = 11; SCM(playerid, COLOR_LIGHTBLUE, "You are now robbing the business, wait 10 seconds to take the money!"); playerVariables[playerid][pRob] = 1; TogglePlayerControllable(playerid, 0); playerVariables[playerid][pFreezeTime] = -1; playerVariables[playerid][pFreezeType] = 3; } } } } else SendClientMessage(playerid, COLOR_GREY, "You don't have enough rob points."); } else SendClientMessage(playerid, COLOR_GREY, "You can't rob the bank because you are a wanted player."); return 1; }
if(RobTime[x] > 0) { RobTime[x]--; if(RobTime[x] == 1) { new house; house = random(systemVariables[houseCount]); SetPlayerCheckpoint(x, houseVariables[house][hHouseExteriorPos][0], houseVariables[house][hHouseExteriorPos][1], houseVariables[house][hHouseExteriorPos][2], 5.0); new randamount; randamount = 50000 * playerVariables[x][pLevel]; RobPrice[x] = randamount; playerVariables[x][pCheckpoint] = 8; SCM(x, COLOR_LIGHTBLUE, "Go to the checkpoint to receive your money!"); new wanted; wanted = random(10); if(wanted == 1) { SCM(x, COLOR_LIGHTBLUE, "The bank employees didn't see your face. You are not wanted!"); } else { playerVariables[x][pWarrants] = 6; format(playerVariables[x][pCrimeReason], 150, "%sarmed robberyn", playerVariables[x][pCrimeReason]); SetPlayerWantedLevel(x, 6); format(szMessage, sizeof(szMessage), "Dispatch: %s (%d) has comitted a crime: armed robbery. Reporter: unknown. W: +6 | New Wanted Level: %d", playerVariables[x][pNormalName], x,playerVariables[x][pWarrants]); sendDepartmentMessage(COLOR_RADIOCHAT, szMessage); } SetPlayerAttachedObject(x, 2, 1550, 1, -0.004022, -0.191353, -0.034982, 158.161407, 87.838058, 0.000000, 1.000000, 1.000000, 1.000000 ); playerVariables[x][pFreezeTime] = 0; playerVariables[x][pFreezeType] = 0; TogglePlayerControllable(x, 1); } }
-
Adrian eu vreau sa fac la mai multe tutoriale vreau sa pun camera unde vreau eu
Problema este ca nu stiu cum se face se da save sau numai stiu eu ce la asta m.am referit, si ce coordonate iei din acel save..
-
Adrian si cum fac sa fac la mai multe tutoriale ?
tu cum faci dai /save ceva imi poti spune te rog?
-
Nu e de la coordonate
-
Asa vreau eu sa fac cum este in acea imagine dar mie imi apare asa
http://tinypic.com/r/211tbte/8
SetPlayerCameraPos(i, 596.3768,-1986.2084,108.7586);SetPlayerCameraLookAt(i, 596.3768,-1986.2084,108.7586);SetPlayerPos(i, 596.3768,-1986.2084,108.7586); -
Problemă întâlnită (descriere):Salut cum as putea sa salvez si eu aceste coordonate de la aceasta camera vreau sa pun la tutorial si nu stiu cum as putea sa le salvez pentru
InterpolateCameraPos
InterpolateCameraLookAtSetPlayerPosEro(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul:
Imagini / Video (optional): http://tinypic.com/r/ifc41h/8
Aţi încercat să rezolvaţi singur?: am incercat sa dau save si sa pun coordonatele dar ma da in apa -
Salut am incercat sa pun si eu pickupuri la case cu casutele verzi si albastre
Totul bine , pana dau /buyhouse sau /sellhousetostate se pune una peste alta..
CMD:buyhouse(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { new Float:oldposx, Float:oldposy, Float:oldposz,string[100],playername[MAX_PLAYER_NAME],sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, sizeof(playername)); GetPlayerPos(playerid, oldposx, oldposy, oldposz); for(new h = 1; h < sizeof(HouseInfo); h++) { if(PlayerToPoint(2.0, playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0) { if(PlayerInfo[playerid][pLevel] < HouseInfo[h][hLevel]) { format(string, sizeof(string), "You must be Level %d to purchase this.", HouseInfo[h][hLevel]); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } if(PlayerInfo[playerid][pPhousekey] != 999 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You already own a house, type /sellhouse if you want to buy this one."); if(GetPlayerCash(playerid) >= HouseInfo[h][hValue]) { InHouse[playerid] = h; PlayerInfo[playerid][pPhousekey] = h; PlayerInfo[playerid][pRented] = -1; HouseInfo[h][hOwned] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(HouseInfo[h][hOwner], sendername, 0, strlen(sendername), 255); GivePlayerCash(playerid,-HouseInfo[h][hValue]); SetPlayerInterior(playerid,HouseInfo[h][hInterior]); SetPlayerPos(playerid,HouseInfo[h][hExitx],HouseInfo[h][hExity],HouseInfo[h][hExitz]); SetPlayerVirtualWorld(playerid,HouseInfo[h][hVirtual]); GameTextForPlayer(playerid, "~w~Welcome Home~n~You can exit at any time by moving to this door and press enter", 5000, 3); PlayerInfo[playerid][pInt] = HouseInfo[h][hInterior]; PlayerInfo[playerid][pLocal] = h; SendClientMessage(playerid, COLOR_WHITE, "Congratulations, on your new Purchase !"); SendClientMessage(playerid, COLOR_WHITE, "Type /help to review the new property help section !"); Update(playerid,pCashx); Update(playerid,pPhousekeyx); OnPropTextdrawUpdate(1,h); new str2[256]; format(str2,sizeof(str2),"UPDATE `houses` SET `Owned`='1',`Owner`='%s' WHERE `ID`='%d'",sendername,HouseInfo[h][hID]); mysql_query(SQL,str2); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You don't have the cash for that."); return 1; } } } } return 1; }
CMD:sellhousetostate(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { new playername[25],sendername[25]; GetPlayerName(playerid, playername, sizeof(playername)); if(PlayerInfo[playerid][pPhousekey] == 999) return SendClientMessage(playerid, COLOR_WHITE, "{FFF8C6}You don't own a house."); if(PlayerInfo[playerid][pPhousekey] != 999 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0) { new house = PlayerInfo[playerid][pPhousekey]; HouseInfo[house][hHel] = 0; HouseInfo[house][hArm] = 0; HouseInfo[house][hLock] = 0; HouseInfo[house][hOwned] = 0; PlayerInfo[playerid][pRented] = 0; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255); ConsumingMoney[playerid] = 1; new cashh = floatround(floatmul(HouseInfo[house][hValue],0.70),floatround_ceil); GivePlayerCash(playerid,cashh); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); new string[70]; format(string, sizeof(string), "~w~Congratulations~n~ You have sold your property for ~n~~g~$%d", cashh); GameTextForPlayer(playerid, string, 10000, 3); PlayerInfo[playerid][pPhousekey] = 999; PlayerInfo[playerid][pRented] = -1; if(PlayerInfo[playerid][pLocal] == house) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,HouseInfo[house][hEntrancex],HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]); PlayerInfo[playerid][pInt] = 0; } Update(playerid,pCashx); Update(playerid,pRentedx); Update(playerid,pPhousekeyx); OnPropTextdrawUpdate(1,house); new str2[256]; format(str2,sizeof(str2),"UPDATE `houses` SET `Hel`='0',`Arm`='0',`Lockk`='0',`Owned`='0',`Owner`='The State' WHERE `ID`='%d'",HouseInfo[house][hID]); mysql_query(SQL,str2); return 1; } else return SendClientMessage(playerid, COLOR_WHITE, "{FFF8C6}You don't own a house."); } return 1; }
public OnPropTextdrawUpdate(update, h) { new PropertyString[256]; if(update == 1) { if(HouseInfo[h][hOwned] == 0) { DestroyDynamic3DTextLabel(HouseLabel[h]); format(PropertyString, sizeof(PropertyString),"{347235}House {FFFFFF}%d n{347235}This house is for sale nDescription: {FFFFFF}%s n{347235}Cost: {FFFFFF}$%s n{347235}Level: {FFFFFF}%d n{347235}to buy this house type /buyhouse",h,HouseInfo[h][hDiscription],FormatNumber(HouseInfo[h][hValue]),HouseInfo[h][hLevel]); HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0); CreateDynamicPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); pickups++; } else if(HouseInfo[h][hOwned] == 1) { if(HouseInfo[h][hRentabil] == 1) { DestroyDynamic3DTextLabel(HouseLabel[h]); format(PropertyString, sizeof(PropertyString),"{FFFFFF}%sn {347235}House {FFFFFF}%d n{347235}This house is owned by {FFFFFF}%s n{347235}Rent: {FFFFFF}$%s n{347235}Level: {FFFFFF}%d n{347235}to rent a room type /rentroom",HouseInfo[h][hDiscription],h,HouseInfo[h][hOwner],FormatNumber(HouseInfo[h][hRent]),HouseInfo[h][hLevel]); HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0); CreateDynamicPickup(1272, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); pickups++; } else { DestroyDynamic3DTextLabel(HouseLabel[h]); format(PropertyString, sizeof(PropertyString),"{FFFFFF}%sn {347235}House {FFFFFF}%d n{347235}This house is owned by {FFFFFF}%s n{347235}Level: {FFFFFF}%d",HouseInfo[h][hDiscription],h,HouseInfo[h][hOwner], HouseInfo[h][hLevel]); HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0); CreateDynamicPickup(1272, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); pickups++; } } }
Problema Wanted
in Arhivă probleme
Posted
Problema intalnita (descriere): Salut , am si eu o problema in legatura cu wanted-ul , cand omor pe cineva ar trebui sa arate ca ai 60 secunde sa dai /call 911
Dar problema este cand cineva ma omora nu apare niciun mesaj
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul:
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: