Jump to content

OldeR

Membru
  • Content Count

    68
  • Joined

  • Last visited

Community Reputation

1 Neutru

About OldeR

  • Rank
    Membru junior

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. OldeR

    Problema /createhouse

    C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18148) : error 017: undefined symbol "CreateHouse" C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18148) : warning 215: expression has no effect C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18148) : error 001: expected token: ";", but found "]" C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18148) : error 029: invalid expression, assumed zero C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18148) : 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:createhouse(playerid, params[]) { new pret, nivel; if(PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, COLOR_GREY, "Nu ai acces!"); if(CreateHouse[playerid] == 1) return SendClientMessage(playerid, COLOR_WHITE, "Deja creezi o casa!"); if(sscanf(params, "ii", pret, nivel)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: {FFFFFF}/createhouse <price> <nivel>"); PlayerTextDrawSetString(playerid, ShopTDs[1], "Seteaza"); CreateHouse[playerid] = 1; SInterior[playerid] = 1; pPret[playerid] = pret; pNivel[playerid] = nivel; GetPlayerPos(playerid, pPos[playerid][0], pPos[playerid][1], pPos[playerid][2]); pInteriorID[playerid] = GetPlayerInterior(playerid), pVirtual[playerid] = GetPlayerVirtualWorld(playerid); SetInteriorCamera(playerid); ShowShopTDs(playerid); SetPlayerVirtualWorld(playerid, playerid+900); return 1; }
  2. OldeR

    Error Compile

    C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18148) : error 017: undefined symbol "CreateHouse" C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18148) : warning 215: expression has no effect C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18148) : error 001: expected token: ";", but found "]" C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18148) : error 029: invalid expression, assumed zero C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18148) : 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:createhouse(playerid, params[]) { new pret, nivel; if(PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, COLOR_GREY, "Nu ai acces!"); if(CreateHouse[playerid] == 1) return SendClientMessage(playerid, COLOR_WHITE, "Deja creezi o casa!"); if(sscanf(params, "ii", pret, nivel)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: {FFFFFF}/createhouse <price> <nivel>"); PlayerTextDrawSetString(playerid, ShopTDs[1], "Seteaza"); CreateHouse[playerid] = 1; SInterior[playerid] = 1; pPret[playerid] = pret; pNivel[playerid] = nivel; GetPlayerPos(playerid, pPos[playerid][0], pPos[playerid][1], pPos[playerid][2]); pInteriorID[playerid] = GetPlayerInterior(playerid), pVirtual[playerid] = GetPlayerVirtualWorld(playerid); SetInteriorCamera(playerid); ShowShopTDs(playerid); SetPlayerVirtualWorld(playerid, playerid+900); return 1; } Comanda este luata din alt gm , ce pot face ?
  3. OldeR

    Problema clothes

    CMD:buyclothes(playerid,params[]){ if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsAtClothShop(playerid)) { if(GetPlayerCash(playerid) < 5000) return SendClientMessage(playerid,COLOR_LIGHTRED,"You don't have 5,000$."); if(PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist1, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist2, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist3, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist4, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 5 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist5, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist6, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 8 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist8, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist9, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 10 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist10, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist11, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 12 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist12, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist13, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 14 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist14, "Select skin"); } } else { SCM(playerid,COLOR_WHITE,"{FFB870}You're not at clothing store."); } return 1; CAND VREAU SA IMI CUMPAR UN SKIN APAS PE EL SI NU SE INTAMPLA NIMIC , CE POT FACE?}
  4. OldeR

    Comanda /ah

  5. OldeR

    Comanda /ah

    CMD:ah(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(PlayerInfo[playerid][pAdmin] >= 1) { SendClientMessage(playerid, COLOR_GREEN,"Admin Commands:"); if (PlayerInfo[playerid][pAdmin] >= 1) { SendClientMessage(playerid, COLOR_GRAD1, "*Admin Level 1: /a /ban (ban pe cont) /banex (ban pe zile) /bano (ban offline) /kick /mute /unmute /check /warn"); SendClientMessage(playerid, COLOR_GRAD2, "*Admin Level 1: /spawn /clearchat(/cc) /ban /goback /spec /specoff /setvw /freeze /unfreeze /togiplog /gotocars"); SendClientMessage(playerid, COLOR_GRAD2, "*Admin Level 1: /slap /up /down /unmute /getip /aimtest /togfind /banex /bano /ajailo /managearea /rveh /setjob"); SendClientMessage(playerid, COLOR_GRAD2, "*Admin Level 1: /gotols /gotosf /gotolv /placegotoevent /count /fastevent /goto /cc /bigears /rveh /gotom"); SendClientMessage(playerid, COLOR_GRAD2, "*Admin Level 1: /o /disarm /ajail /ajailo /checkweapons /togfind /aduty /nre /nmute /viewnewbie /startbet /betwinner /showdamage"); } if (PlayerInfo[playerid][pAdmin] >= 2) { SendClientMessage(playerid, COLOR_GRAD1,"*Admin Level 2: /skydive /sban /gotods /jetpack /nos /fixveh /areaheal /areadisarm /areagun /areafreeze /areaunfreeze"); SendClientMessage(playerid, COLOR_GRAD2,"*Admin Level 2: /unprison /checkgun /checkvhp /cam /putplayerinvehicle"); } if (PlayerInfo[playerid][pAdmin] >= 3) { SendClientMessage(playerid, COLOR_GRAD1,"*Admin Level 3: /hc /gotomark /gethere /getcar /gotoin /startgungame /rac /setint /setvw"); SendClientMessage(playerid, COLOR_GRAD2,"*Admin Level 3: /mark /gotomark /gotolv /gotosf /gethere /oldcar /gotocar /getcar"); } if (PlayerInfo[playerid][pAdmin] >= 4) { SendClientMessage(playerid, COLOR_GRAD1,"*Admin Level 4: /lwarn /lunwarn /fuelcars /temporarskin /unbanip /unban /auninivite/fixveh /givegun /sethp /setarmor /unwarn"); SendClientMessage(playerid, COLOR_GRAD2,"*Admin Level 4: /fixveh /givegun /forceskin /setfamily /setjob /weatherall /skick"); } if (PlayerInfo[playerid][pAdmin] >= 5) { SendClientMessage(playerid, COLOR_GRAD1,"*Admin Level 5: /makeleader /makehelper /maxmembers /agl /setname /tod /givemoney /money /asellhouse /asellbiz /sellsbiz"); SendClientMessage(playerid, COLOR_GRAD2,"*Admin Level 5: /setskin /givemoney /money(sets money) /bank /giveallmoney /unwarn /setpremium /removepremium /setleader /hprice"); } if (PlayerInfo[playerid][pAdmin] >= 6) { SendClientMessage(playerid, COLOR_GRAD1,"*Admin Level 6: /restartgame /edit /togkickafk /serverpass /servername /spawncar /removeallspawncar /makeadmin /resethelp"); SendClientMessage(playerid, COLOR_GRAD1,"*Admin Level 6: /setcar /checkspawncar /removespawncarid /forcepaintballstop /fixpaintball /setpp /kickall /activatebonus /activategift"); } } else { SendClientMessage(playerid, COLOR_WHITE, AdminOnly); return 1; } return 1; } Vreau sa fac pana la admin 7 , adica cand dau /admins sa imi apare si gradul 7
  6. OldeR

    Compile error house

    HouseInfo[71][hInfo] C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18158) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18159) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18160) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18161) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18162) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18163) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18164) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18167) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18167) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18168) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18169) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18169) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18170) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18170) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18171) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18171) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18172) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18172) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18173) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18173) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18174) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18174) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18175) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18175) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18176) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18176) : error 033: array must be indexed (variable "HouseInfo") Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase Tot imi da erori ...
  7. OldeR

    Compile error house

    C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18158) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18159) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18160) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18161) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18162) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18163) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18164) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18167) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18167) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18168) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18169) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18169) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18170) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18170) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18171) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18171) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18172) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18172) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18173) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18173) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18174) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18174) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18175) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18175) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18176) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(18176) : error 033: array must be indexed (variable "HouseInfo") Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
  8. OldeR

    Problema /buyclothes

    Salut , si unde bag comanda ai?
  9. OldeR

    Problema /buyclothes

    CMD:buyclothes(playerid,params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsAtClothShop(playerid)) { if(GetPlayerCash(playerid) < 5000) return SendClientMessage(playerid,COLOR_LIGHTRED,"You don't have 5,000$."); if(PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist1, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist2, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist3, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist4, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 5 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist5, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist6, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 8 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist8, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist9, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 10 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist10, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist11, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 12 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist12, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist13, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 14 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist14, "Select skin"); } } else { SCM(playerid,COLOR_WHITE,"{FFB870}You're not at clothing store."); } return 1; } CMD:puthat(playerid,params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pHats] != 0) { if(Hatss[playerid] == 0) { new skin,sendername[30],string[256]; GetPlayerName(playerid,sendername,sizeof(sendername)); skin = GetPlayerSkin(playerid); SetPlayerAttachedObject(playerid, 0, PlayerInfo[playerid][pHats], 2, SkinCaps[skin][0], SkinCaps[skin][1], SkinCaps[skin][2], SkinCaps[skin][3],SkinCaps[skin][4], SkinCaps[skin][5], 1.000000, 1.000000, 1.000000); Hatss[playerid] = 1; format(string, sizeof(string), "* %s puts on his hat.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else return SendClientMessage(playerid, COLOR_LIGHTRED, "You already have put a hat."); } else return SendClientMessage(playerid, COLOR_LIGHTRED, "You don't have a hat."); } return 1; } Cand vreau sa cumpar un skin apas si nu se intampla nimic , ce pot face?
  10. CMD:createhouse(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SCM(playerid, COLOR_ERROR, "Trebuie sa te autentifici pe server!"); if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 6) { new house[64],Float:pX,Float:pY,Float:pZ,PropertyString[1000],query[500]; if(sscanf(params, "s[64]", house)) return SendClientMessage(playerid, 0xFFFFFFFF, "{A9C4E4}Folosire: {FFFFFF}/createhouse [interios</small/medium/big>]"); if(strcmp(house,"medium",true) == 0) { GetPlayerPos(playerid, pX, pY, pZ); SetPVarFloat(playerid, "pHeX", pX); SetPVarFloat(playerid, "pHeY", pY); SetPVarFloat(playerid, "pHeZ", pZ); SetPVarInt(playerid, "hExt", 1); SetPVarFloat(playerid, "pHiX", 243.4247); SetPVarFloat(playerid, "pHiY", -1851.5872); SetPVarFloat(playerid, "pHiZ", 3333.9329); SetPVarInt(playerid, "pHiID", 0); new i = housess+1; mysql_format(SQL, query, sizeof(query), "INSERT INTO houses (Owner, Lockk, Hel, Arm, Level, Rentabil, Rent, Owned, Discription, Value, Takings) VALUES('The State', '0', '0', '0', '10', '1', '500', '0', 'House', '10000000', '0')"); mysql_tquery(SQL, query, "", ""); HouseInfo[hID] = i; HouseInfo[hEntrancex] = GetPVarFloat(playerid, "pHeX"); HouseInfo[hEntrancey] = GetPVarFloat(playerid, "pHeY"); HouseInfo[hEntrancez] = GetPVarFloat(playerid, "pHeZ"); HouseInfo[hExitx] = GetPVarFloat(playerid, "pHiX"); HouseInfo[hExity] = GetPVarFloat(playerid, "pHiY"); HouseInfo[hExitz] = GetPVarFloat(playerid, "pHiZ"); format(HouseInfo[hOwner], 64, "The State"); format(HouseInfo[hDiscription], 64, "House"); HouseInfo[hValue] = 10000000; SetPVarInt(playerid, "pHiVW", housess+HouseInfo[hValue]); HouseInfo[hHel] = 0; HouseInfo[hArm] = 0; HouseInfo[hInterior] = GetPVarInt(playerid, "pHiID"); HouseInfo[hLock] = 0; HouseInfo[hOwned] = 0; HouseInfo[hRent] = 500; HouseInfo[hRentabil] = 1; HouseInfo[hTakings] = 0; HouseInfo[hLevel] = 5; HouseInfo[hVirtual] = GetPVarInt(playerid, "pHiVW"); mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `Entrancex`='%f',`Entrancey`='%f',`Entrancez`='%f',`Exitx`='%f',`Exity`='%f',`Exitz`='%f',`Interior`='%d',`Virtual`='%d' WHERE `ID`='%d'",HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez],HouseInfo[hExitx],HouseInfo[hExity],HouseInfo[hExitz],HouseInfo[hInterior],HouseInfo[hVirtual],i); mysql_tquery(SQL,query,"",""); DeletePVar(playerid, "pHeX"); DeletePVar(playerid, "pHeY"); DeletePVar(playerid, "pHeZ"); DeletePVar(playerid, "pHiX"); DeletePVar(playerid, "pHeY"); DeletePVar(playerid, "pHeZ"); DeletePVar(playerid, "pHiID"); DeletePVar(playerid, "pHiVW"); DeletePVar(playerid, "pExt"); DeletePVar(playerid, "pInt"); DestroyDynamic3DTextLabel(HouseLabel); format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {A9C4E4}%d \n{A9C4E4}This house is for sale(/buyhouse) ! \n{FFFFFF}Description: {A9C4E4}%s \n{FFFFFF}Price: {A9C4E4}$%s \n{FFFFFF}Level: {A9C4E4}%d",i,HouseInfo[hDiscription],FormatNumber(HouseInfo[hValue]),HouseInfo[hLevel]); HouseLabel = CreateDynamic3DTextLabel(PropertyString ,0x09FF00CC,HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez]); housess++; SendClientMessage(playerid, COLOR_YELLOW, "House added interior: medium."); } if(strcmp(house,"small",true) == 0) { GetPlayerPos(playerid, pX, pY, pZ); SetPVarFloat(playerid, "pHeX", pX); SetPVarFloat(playerid, "pHeY", pY); SetPVarFloat(playerid, "pHeZ", pZ); SetPVarFloat(playerid, "pHiX", 210.6192); SetPVarFloat(playerid, "pHiY", 1753.7064); SetPVarFloat(playerid, "pHiZ", 3334.2429); SetPVarInt(playerid, "pHiID", 0); new i = housess+1; mysql_format(SQL, query, sizeof(query), "INSERT INTO houses (Owner, Lockk, Hel, Arm, Level, Rentabil, Rent, Owned, Discription, Value, Takings) VALUES('The State', '0', '0', '0', '10', '1', '500', '0', 'House', '10000000', '0')"); mysql_tquery(SQL, query, "", ""); HouseInfo[hID] = i; HouseInfo[hEntrancex] = GetPVarFloat(playerid, "pHeX"); HouseInfo[hEntrancey] = GetPVarFloat(playerid, "pHeY"); HouseInfo[hEntrancez] = GetPVarFloat(playerid, "pHeZ"); HouseInfo[hExitx] = GetPVarFloat(playerid, "pHiX"); HouseInfo[hExity] = GetPVarFloat(playerid, "pHiY"); HouseInfo[hExitz] = GetPVarFloat(playerid, "pHiZ"); format(HouseInfo[hOwner], 64, "The State"); format(HouseInfo[hDiscription], 64, "House"); HouseInfo[hValue] = 5000000; SetPVarInt(playerid, "pHiVW", housess+HouseInfo[hValue]); HouseInfo[hHel] = 0; HouseInfo[hArm] = 0; HouseInfo[hInterior] = GetPVarInt(playerid, "pHiID"); HouseInfo[hLock] = 0; HouseInfo[hOwned] = 0; HouseInfo[hRent] = 500; HouseInfo[hRentabil] = 1; HouseInfo[hTakings] = 0; HouseInfo[hLevel] = 3; HouseInfo[hVirtual] = GetPVarInt(playerid, "pHiVW"); mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `Entrancex`='%f',`Entrancey`='%f',`Entrancez`='%f',`Exitx`='%f',`Exity`='%f',`Exitz`='%f',`Interior`='%d',`Virtual`='%d' WHERE `ID`='%d'",HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez],HouseInfo[hExitx],HouseInfo[hExity],HouseInfo[hExitz],HouseInfo[hInterior],HouseInfo[hVirtual],i); mysql_tquery(SQL,query,"",""); DeletePVar(playerid, "pHeX"); DeletePVar(playerid, "pHeY"); DeletePVar(playerid, "pHeZ"); DeletePVar(playerid, "pHiX"); DeletePVar(playerid, "pHeY"); DeletePVar(playerid, "pHeZ"); DeletePVar(playerid, "pHiID"); DeletePVar(playerid, "pHiVW"); DeletePVar(playerid, "pExt"); DeletePVar(playerid, "pInt"); DestroyDynamic3DTextLabel(HouseLabel); format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {A9C4E4}%d \n{A9C4E4}This house is for sale(/buyhouse) ! \n{FFFFFF}Description: {A9C4E4}%s \n{FFFFFF}Price: {A9C4E4}$%s \n{FFFFFF}Level: {A9C4E4}%d",i,HouseInfo[hDiscription],FormatNumber(HouseInfo[hValue]),HouseInfo[hLevel]); HouseLabel = CreateDynamic3DTextLabel(PropertyString ,0x09FF00CC,HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez]); housess++; SendClientMessage(playerid, COLOR_YELLOW, "House added interior: small."); } if(strcmp(house,"big",true) == 0) { GetPlayerPos(playerid, pX, pY, pZ); SetPVarFloat(playerid, "pHeX", pX); SetPVarFloat(playerid, "pHeY", pY); SetPVarFloat(playerid, "pHeZ", pZ); SetPVarFloat(playerid, "pHiX", 1686.6067); SetPVarFloat(playerid, "pHiY", 3843.6399); SetPVarFloat(playerid, "pHiZ", 8.0741); SetPVarInt(playerid, "pHiID", 0); new i = housess+1; mysql_format(SQL, query, sizeof(query), "INSERT INTO houses (Owner, Lockk, Hel, Arm, Level, Rentabil, Rent, Owned, Discription, Value, Takings) VALUES('The State', '0', '0', '0', '10', '1', '500', '0', 'House', '10000000', '0')"); mysql_tquery(SQL, query, "", ""); HouseInfo[hID] = i; HouseInfo[hEntrancex] = GetPVarFloat(playerid, "pHeX"); HouseInfo[hEntrancey] = GetPVarFloat(playerid, "pHeY"); HouseInfo[hEntrancez] = GetPVarFloat(playerid, "pHeZ"); HouseInfo[hExitx] = GetPVarFloat(playerid, "pHiX"); HouseInfo[hExity] = GetPVarFloat(playerid, "pHiY"); HouseInfo[hExitz] = GetPVarFloat(playerid, "pHiZ"); format(HouseInfo[hOwner], 64, "The State"); format(HouseInfo[hDiscription], 64, "House"); HouseInfo[hValue] = 15000000; SetPVarInt(playerid, "pHiVW", housess+HouseInfo[hValue]); HouseInfo[hHel] = 0; HouseInfo[hArm] = 0; HouseInfo[hInterior] = GetPVarInt(playerid, "pHiID"); HouseInfo[hLock] = 0; HouseInfo[hOwned] = 0; HouseInfo[hRent] = 500; HouseInfo[hRentabil] = 1; HouseInfo[hTakings] = 0; HouseInfo[hLevel] = 7; HouseInfo[hVirtual] = GetPVarInt(playerid, "pHiVW"); mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `Entrancex`='%f',`Entrancey`='%f',`Entrancez`='%f',`Exitx`='%f',`Exity`='%f',`Exitz`='%f',`Interior`='%d',`Virtual`='%d' WHERE `ID`='%d'",HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez],HouseInfo[hExitx],HouseInfo[hExity],HouseInfo[hExitz],HouseInfo[hInterior],HouseInfo[hVirtual],i); mysql_tquery(SQL,query,"",""); DeletePVar(playerid, "pHeX"); DeletePVar(playerid, "pHeY"); DeletePVar(playerid, "pHeZ"); DeletePVar(playerid, "pHiX"); DeletePVar(playerid, "pHeY"); DeletePVar(playerid, "pHeZ"); DeletePVar(playerid, "pHiID"); DeletePVar(playerid, "pHiVW"); DeletePVar(playerid, "pExt"); DeletePVar(playerid, "pInt"); DestroyDynamic3DTextLabel(HouseLabel); format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {A9C4E4}%d \n{A9C4E4}This house is for sale(/buyhouse) ! \n{FFFFFF}Description: {A9C4E4}%s \n{FFFFFF}Price: {A9C4E4}$%s \n{FFFFFF}Level: {A9C4E4}%d",i,HouseInfo[hDiscription],FormatNumber(HouseInfo[hValue]),HouseInfo[hLevel]); HouseLabel = CreateDynamic3DTextLabel(PropertyString ,0x09FF00CC,HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez]); housess++; SendClientMessage(playerid, COLOR_YELLOW, "House added interior: big."); } } else return SendClientMessage(playerid, COLOR_ERROR, AdminOnly); } return 1; } Cand scriu /createhouse small imi spune unknown , ce pot face?
  11. OldeR

    /createhouse unknown problema , help me

    C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17969) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17970) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17971) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17972) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17973) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17974) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17975) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17978) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17978) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17979) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17980) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17980) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17981) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17981) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17982) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17982) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17983) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17983) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17984) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17984) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17985) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17985) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17986) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17986) : error 033: array must be indexed (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17987) : error 032: array index out of bounds (variable "HouseInfo") C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(17987) : error 033: array must be indexed (variable "HouseInfo") Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 26 Errors. Nu merge nici-una , nu imi poti da o comanda mai simpla , te rog?
  12. CMD:createhouse(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SCM(playerid, COLOR_ERROR, "Trebuie sa te autentifici pe server!"); if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 6) { new house[64],Float:pX,Float:pY,Float:pZ,PropertyString[1000],query[500]; if(sscanf(params, "s[64]", house)) return SendClientMessage(playerid, 0xFFFFFFFF, "{A9C4E4}Folosire: {FFFFFF}/createhouse [interios</small/medium/big>]"); if(strcmp(house,"medium",true) == 0) { GetPlayerPos(playerid, pX, pY, pZ); SetPVarFloat(playerid, "pHeX", pX); SetPVarFloat(playerid, "pHeY", pY); SetPVarFloat(playerid, "pHeZ", pZ); SetPVarInt(playerid, "hExt", 1); SetPVarFloat(playerid, "pHiX", 243.4247); SetPVarFloat(playerid, "pHiY", -1851.5872); SetPVarFloat(playerid, "pHiZ", 3333.9329); SetPVarInt(playerid, "pHiID", 0); new i = housess+1; mysql_format(SQL, query, sizeof(query), "INSERT INTO houses (Owner, Lockk, Hel, Arm, Level, Rentabil, Rent, Owned, Discription, Value, Takings) VALUES('The State', '0', '0', '0', '10', '1', '500', '0', 'House', '10000000', '0')"); mysql_tquery(SQL, query, "", ""); HouseInfo[hID] = i; HouseInfo[hEntrancex] = GetPVarFloat(playerid, "pHeX"); HouseInfo[hEntrancey] = GetPVarFloat(playerid, "pHeY"); HouseInfo[hEntrancez] = GetPVarFloat(playerid, "pHeZ"); HouseInfo[hExitx] = GetPVarFloat(playerid, "pHiX"); HouseInfo[hExity] = GetPVarFloat(playerid, "pHiY"); HouseInfo[hExitz] = GetPVarFloat(playerid, "pHiZ"); format(HouseInfo[hOwner], 64, "The State"); format(HouseInfo[hDiscription], 64, "House"); HouseInfo[hValue] = 10000000; SetPVarInt(playerid, "pHiVW", housess+HouseInfo[hValue]); HouseInfo[hHel] = 0; HouseInfo[hArm] = 0; HouseInfo[hInterior] = GetPVarInt(playerid, "pHiID"); HouseInfo[hLock] = 0; HouseInfo[hOwned] = 0; HouseInfo[hRent] = 500; HouseInfo[hRentabil] = 1; HouseInfo[hTakings] = 0; HouseInfo[hLevel] = 5; HouseInfo[hVirtual] = GetPVarInt(playerid, "pHiVW"); mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `Entrancex`='%f',`Entrancey`='%f',`Entrancez`='%f',`Exitx`='%f',`Exity`='%f',`Exitz`='%f',`Interior`='%d',`Virtual`='%d' WHERE `ID`='%d'",HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez],HouseInfo[hExitx],HouseInfo[hExity],HouseInfo[hExitz],HouseInfo[hInterior],HouseInfo[hVirtual],i); mysql_tquery(SQL,query,"",""); DeletePVar(playerid, "pHeX"); DeletePVar(playerid, "pHeY"); DeletePVar(playerid, "pHeZ"); DeletePVar(playerid, "pHiX"); DeletePVar(playerid, "pHeY"); DeletePVar(playerid, "pHeZ"); DeletePVar(playerid, "pHiID"); DeletePVar(playerid, "pHiVW"); DeletePVar(playerid, "pExt"); DeletePVar(playerid, "pInt"); DestroyDynamic3DTextLabel(HouseLabel); format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {A9C4E4}%d \n{A9C4E4}This house is for sale(/buyhouse) ! \n{FFFFFF}Description: {A9C4E4}%s \n{FFFFFF}Price: {A9C4E4}$%s \n{FFFFFF}Level: {A9C4E4}%d",i,HouseInfo[hDiscription],FormatNumber(HouseInfo[hValue]),HouseInfo[hLevel]); HouseLabel = CreateDynamic3DTextLabel(PropertyString ,0x09FF00CC,HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez]); housess++; SendClientMessage(playerid, COLOR_YELLOW, "House added interior: medium."); } if(strcmp(house,"small",true) == 0) { GetPlayerPos(playerid, pX, pY, pZ); SetPVarFloat(playerid, "pHeX", pX); SetPVarFloat(playerid, "pHeY", pY); SetPVarFloat(playerid, "pHeZ", pZ); SetPVarFloat(playerid, "pHiX", 210.6192); SetPVarFloat(playerid, "pHiY", 1753.7064); SetPVarFloat(playerid, "pHiZ", 3334.2429); SetPVarInt(playerid, "pHiID", 0); new i = housess+1; mysql_format(SQL, query, sizeof(query), "INSERT INTO houses (Owner, Lockk, Hel, Arm, Level, Rentabil, Rent, Owned, Discription, Value, Takings) VALUES('The State', '0', '0', '0', '10', '1', '500', '0', 'House', '10000000', '0')"); mysql_tquery(SQL, query, "", ""); HouseInfo[hID] = i; HouseInfo[hEntrancex] = GetPVarFloat(playerid, "pHeX"); HouseInfo[hEntrancey] = GetPVarFloat(playerid, "pHeY"); HouseInfo[hEntrancez] = GetPVarFloat(playerid, "pHeZ"); HouseInfo[hExitx] = GetPVarFloat(playerid, "pHiX"); HouseInfo[hExity] = GetPVarFloat(playerid, "pHiY"); HouseInfo[hExitz] = GetPVarFloat(playerid, "pHiZ"); format(HouseInfo[hOwner], 64, "The State"); format(HouseInfo[hDiscription], 64, "House"); HouseInfo[hValue] = 5000000; SetPVarInt(playerid, "pHiVW", housess+HouseInfo[hValue]); HouseInfo[hHel] = 0; HouseInfo[hArm] = 0; HouseInfo[hInterior] = GetPVarInt(playerid, "pHiID"); HouseInfo[hLock] = 0; HouseInfo[hOwned] = 0; HouseInfo[hRent] = 500; HouseInfo[hRentabil] = 1; HouseInfo[hTakings] = 0; HouseInfo[hLevel] = 3; HouseInfo[hVirtual] = GetPVarInt(playerid, "pHiVW"); mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `Entrancex`='%f',`Entrancey`='%f',`Entrancez`='%f',`Exitx`='%f',`Exity`='%f',`Exitz`='%f',`Interior`='%d',`Virtual`='%d' WHERE `ID`='%d'",HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez],HouseInfo[hExitx],HouseInfo[hExity],HouseInfo[hExitz],HouseInfo[hInterior],HouseInfo[hVirtual],i); mysql_tquery(SQL,query,"",""); DeletePVar(playerid, "pHeX"); DeletePVar(playerid, "pHeY"); DeletePVar(playerid, "pHeZ"); DeletePVar(playerid, "pHiX"); DeletePVar(playerid, "pHeY"); DeletePVar(playerid, "pHeZ"); DeletePVar(playerid, "pHiID"); DeletePVar(playerid, "pHiVW"); DeletePVar(playerid, "pExt"); DeletePVar(playerid, "pInt"); DestroyDynamic3DTextLabel(HouseLabel); format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {A9C4E4}%d \n{A9C4E4}This house is for sale(/buyhouse) ! \n{FFFFFF}Description: {A9C4E4}%s \n{FFFFFF}Price: {A9C4E4}$%s \n{FFFFFF}Level: {A9C4E4}%d",i,HouseInfo[hDiscription],FormatNumber(HouseInfo[hValue]),HouseInfo[hLevel]); HouseLabel = CreateDynamic3DTextLabel(PropertyString ,0x09FF00CC,HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez]); housess++; SendClientMessage(playerid, COLOR_YELLOW, "House added interior: small."); } if(strcmp(house,"big",true) == 0) { GetPlayerPos(playerid, pX, pY, pZ); SetPVarFloat(playerid, "pHeX", pX); SetPVarFloat(playerid, "pHeY", pY); SetPVarFloat(playerid, "pHeZ", pZ); SetPVarFloat(playerid, "pHiX", 1686.6067); SetPVarFloat(playerid, "pHiY", 3843.6399); SetPVarFloat(playerid, "pHiZ", 8.0741); SetPVarInt(playerid, "pHiID", 0); new i = housess+1; mysql_format(SQL, query, sizeof(query), "INSERT INTO houses (Owner, Lockk, Hel, Arm, Level, Rentabil, Rent, Owned, Discription, Value, Takings) VALUES('The State', '0', '0', '0', '10', '1', '500', '0', 'House', '10000000', '0')"); mysql_tquery(SQL, query, "", ""); HouseInfo[hID] = i; HouseInfo[hEntrancex] = GetPVarFloat(playerid, "pHeX"); HouseInfo[hEntrancey] = GetPVarFloat(playerid, "pHeY"); HouseInfo[hEntrancez] = GetPVarFloat(playerid, "pHeZ"); HouseInfo[hExitx] = GetPVarFloat(playerid, "pHiX"); HouseInfo[hExity] = GetPVarFloat(playerid, "pHiY"); HouseInfo[hExitz] = GetPVarFloat(playerid, "pHiZ"); format(HouseInfo[hOwner], 64, "The State"); format(HouseInfo[hDiscription], 64, "House"); HouseInfo[hValue] = 15000000; SetPVarInt(playerid, "pHiVW", housess+HouseInfo[hValue]); HouseInfo[hHel] = 0; HouseInfo[hArm] = 0; HouseInfo[hInterior] = GetPVarInt(playerid, "pHiID"); HouseInfo[hLock] = 0; HouseInfo[hOwned] = 0; HouseInfo[hRent] = 500; HouseInfo[hRentabil] = 1; HouseInfo[hTakings] = 0; HouseInfo[hLevel] = 7; HouseInfo[hVirtual] = GetPVarInt(playerid, "pHiVW"); mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `Entrancex`='%f',`Entrancey`='%f',`Entrancez`='%f',`Exitx`='%f',`Exity`='%f',`Exitz`='%f',`Interior`='%d',`Virtual`='%d' WHERE `ID`='%d'",HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez],HouseInfo[hExitx],HouseInfo[hExity],HouseInfo[hExitz],HouseInfo[hInterior],HouseInfo[hVirtual],i); mysql_tquery(SQL,query,"",""); DeletePVar(playerid, "pHeX"); DeletePVar(playerid, "pHeY"); DeletePVar(playerid, "pHeZ"); DeletePVar(playerid, "pHiX"); DeletePVar(playerid, "pHeY"); DeletePVar(playerid, "pHeZ"); DeletePVar(playerid, "pHiID"); DeletePVar(playerid, "pHiVW"); DeletePVar(playerid, "pExt"); DeletePVar(playerid, "pInt"); DestroyDynamic3DTextLabel(HouseLabel); format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {A9C4E4}%d \n{A9C4E4}This house is for sale(/buyhouse) ! \n{FFFFFF}Description: {A9C4E4}%s \n{FFFFFF}Price: {A9C4E4}$%s \n{FFFFFF}Level: {A9C4E4}%d",i,HouseInfo[hDiscription],FormatNumber(HouseInfo[hValue]),HouseInfo[hLevel]); HouseLabel = CreateDynamic3DTextLabel(PropertyString ,0x09FF00CC,HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez]); housess++; SendClientMessage(playerid, COLOR_YELLOW, "House added interior: big."); } } else return SendClientMessage(playerid, COLOR_ERROR, AdminOnly); } return 1; } Cand scriu /createhouse small imi spune unknown , ce pot face?
  13. OldeR

    Problema comanda /l

    Gata frate mersi am facut-o
  14. OldeR

    Problema comanda /createhouse

    Pai nu o mai am am sters-o era foarte buguita am luat-o si eu tot de aici , imi poti da tu una simpla te rog mult
  15. Am bagat o comanda in gm /createhouse si cand dau /createhouse nu imi apare nimic ce pot face?
×

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.