Jump to content
  • 0

Problema /createhouse


Question

Posted

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

1 answer to this question

Recommended Posts

  • 0
Posted

Nu mai fa alte topicuri. Daca problema nu e rezolvata doar dai bump la topic sa stie lumea ca inca cauti rezolvare

new CreateHouse[MAX_PLAYERS];

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.