Jump to content

OldeR

Membru
  • Posts

    62
  • Joined

  • Last visited

Posts posted by OldeR

  1. 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. 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. 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?
    }sa-mp-086.png.fee5d308c5b03bbaedcf16c5bd7d5826.png.f956c2be8f8b3c6a7925210a384834da.png

  4. Acum 13 minute, CritteR a spus:

    Pe bune????????.......

     

    
    if (PlayerInfo[playerid][pAdmin] >= 7)
            {
                SendClientMessage(playerid, COLOR_GRAD1,"*Admin Level 7: Comenzi...");
                SendClientMessage(playerid, COLOR_GRAD1,"*Admin Level 7: Mai multe comenzi...");
            }

    offtopic: mi-am stricat cele 69 de posturi cu raspunsul asta..

    mersi man imi dadea o eroare si vad ca acum merge , dar ma poti ajuta cu o problema serioasa?

     

  5. 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. 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. 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. 1 oră în urmă, Banditul a spus:

    Sa copiezi doar comanda nu face ca intreg sistemul sa functioneze. Ai ratat sa copiezi cea mai importanta parte, OnPlayerModelSelection functia care se ocupa cu "X a apasat skin Y atunci fa actiunea Z"

    Salut , si unde bag comanda ai?

  9. 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?

    sa-mp-086.png

  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?

    sa-mp-082.png.6d46845c176317553d40c9627d240db8.png

  11. Acum 8 ore, Gireada a spus:

    Incearca asa

    
    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))
                {
                    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))
                {
                    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))
                {
                    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;
    }

    Daca nu merge, ti-am facut-o cu cifre.

    
    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,Float:pX,Float:pY,Float:pZ,PropertyString[1000],query[500];
                if(sscanf(params, "i", house)) return SendClientMessage(playerid, 0xFFFFFFFF, "{A9C4E4}Folosire: {FFFFFF}/createhouse [interios<1 - small/2 - medium/ 3 - big>]");
    			switch(house)
                {
    				case 1:
    				{
    					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.");
    				}
    				case 2:
    				{
    					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.");
    				}
    				case 3:
    				{
    					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.");
    				}
    				default:
    				{
    					SendClientMessage(playerid, 0xFFFFFFFF, "{A9C4E4}Foloseste una dintre cifre pentru interior 1 - small 2 - medium 3 - big");
    				}
                }
            }
            else return SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
        }
        return 1;
    }

     

    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?

    sa-mp-082.png

  13. C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(23036) : error 029: invalid expression, assumed zero
    C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(23036) : warning 215: expression has no effect
    C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(23036) : error 001: expected token: ";", but found "if"
    C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(23038) : error 001: expected token: "*then", but found ";"
    C:\Users\Ionut\Desktop\TOT\reluam\gm\gamemodes\haman.pwn(23038) : error 036: empty statement
    Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


    4 Errors.

    else if

                SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Only leaders can use this command.");

     

  14. Salut nu merge comanda /l sunt admin si nu arata nimic dar daca imi dau lider merge ? ce pot face? 

    CMD:l(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pLeader] >= 1 || PlayerInfo[ playerid ][ pAdmin ] )
            {
                new sendername[30],mesajelc[250],string[250];
                   GetPlayerName(playerid, sendername, sizeof(sendername));
                if(sscanf(params, "s[250]",mesajelc)) return SCM(playerid,COLOR_WHITE,"{73a2ad}Syntax: /l <Message>");
                {
                    if (PlayerInfo[playerid][pLeader] == 1)
                    {
                         format(string, sizeof(string), "{73a2ad}(/l) Leader Los Santos Police Departament %s: %s",sendername, mesajelc);
                     }
                     else if (PlayerInfo[playerid][pLeader] == 2)
                    {
                         format(string, sizeof(string), "{73a2ad} (/l) Leader FBI %s: %s",sendername, mesajelc);
                     }
                     else if (PlayerInfo[playerid][pLeader] == 3)
                    {
                         format(string, sizeof(string), "{73a2ad}(/l) Leader National Guard %s: %s",sendername, mesajelc);
                     }
                     else if (PlayerInfo[playerid][pLeader] == 4)
                    {
                         format(string, sizeof(string), "{73a2ad}(/l) Leader Los Aztecas %s: %s",sendername, mesajelc);
                     }
                     else if (PlayerInfo[playerid][pLeader] == 5)
                    {
                         format(string, sizeof(string), "{73a2ad}(/l) Leader Groove Street %s: %s",sendername, mesajelc);
                     }
                     else if (PlayerInfo[playerid][pLeader] == 6)
                    {
                         format(string, sizeof(string), "{73a2ad}(/l) Leader Los Vagos %s: %s",sendername, mesajelc);
                     }
                     else if (PlayerInfo[playerid][pLeader] == ?
                    {
                         format(string, sizeof(string), "{73a2ad}(/l) Leader Las Venturas Police Departament %s: %s",sendername, mesajelc);
                     }
                     else if (PlayerInfo[playerid][pLeader] == 9)
                    {
                         format(string, sizeof(string), "{73a2ad}(/l) Leader News Reporters %s: %s",sendername, mesajelc);
                     }
                     else if (PlayerInfo[playerid][pLeader] == 10)
                    {
                         format(string, sizeof(string), "{73a2ad}(/l) Leader Ballas %s: %s",sendername, mesajelc);
                     }
                     else if (PlayerInfo[playerid][pLeader] == 11)
                    {
                         format(string, sizeof(string), "{73a2ad}(/l) Leader Hitmen %s: %s",sendername, mesajelc);
                     }
                     else if (PlayerInfo[playerid][pLeader] == 12)
                    {
                         format(string, sizeof(string), "{73a2ad}(/l) Leader School Instructors %s: %s",sendername, mesajelc);
                     }
                     else if (PlayerInfo[playerid][pLeader] == 13)
                    {
                         format(string, sizeof(string), "{73a2ad}(/l) Leader Taxi Cab Company %s: %s",sendername, mesajelc);
                     }
                     else if (PlayerInfo[playerid][pLeader] == 14)
                    {
                         format(string, sizeof(string), "{73a2ad}(/l) Leader Paramedics %s: %s",sendername, mesajelc);
                     }
                   
                }
                }
            else
            {
                SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Only leaders can use this command.");
                return 1;
            }
        }
        return 1;
    }

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.