Jump to content
  • 0

Problema /createhouse


OldeR

Question

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

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.