[SOLVED]TOO MANY ERROR!! +REP
#1

I Have This script but when im tryng to compile it and it too many erorr
pawn Код:
dcmd_createhouse(playerid,params[])
{
        if(AccInfo[playerid][lose] >= 1)
        {
    new Float:x,Float:y,Float:z,price,lvl,hname[24],string[128],file[100],labelstring[500],hID = HouseCount;
    if(sscanf(params,"s[24]ii",hname,lvl,price)) return SendClientMessage(playerid,COLOR_RED,"USE: /createhouse [name] [level] [price]");
    if(lvl < 0) return SendClientMessage(playerid,COLOR_RED,"Level must be 1-8");
    GetPlayerPos(playerid,x,y,z);
    HouseInfo[hID][Name] = hname;
    HouseInfo[hID][Level] = lvl;
    HouseInfo[hID][Price] = price;
    HouseInfo[hID][Owned] = 0;
    HouseInfo[hID][hX] = x;
    HouseInfo[hID][hY] = y;
    HouseInfo[hID][hZ] = z;
    HouseInfo[hID][hVirtual] = GetPlayerVirtualWorld(playerid);
    format(HouseInfo[hID][Owner],24,"Anvailable House: No owner");
    format(string,sizeof(string),"Name: "COL_YELLOW"%s || Level: "COL_PURPLE"%i || Price: "COL_LIME"%i",HouseInfo[hID][Name],HouseInfo[hID][Level],HouseInfo[hID][Price]);
    SendClientMessage(playerid,COLOR_YELLOW,"House system: CREATED!");
    SendClientMessage(playerid,COLOR_LIME,string);
    HouseEntrance[hID] = CreateDynamicPickup(1273,1,x,y,z,GetPlayerVirtualWorld(playerid));

    format(file,sizeof(file),"Houses/%i.ini",hID);
    dini_Create(file);
    if(dini_Exists(file))
    {
        dini_Set(file,"Name",hname);
        dini_Set(file,"Owner","No owner");
        dini_IntSet(file,"Owned",0);
        dini_IntSet(file,"Level",lvl);
        dini_IntSet(file,"Price",price);
        dini_FloatSet(file,"X",x);
        dini_FloatSet(file,"Y",y);
        dini_FloatSet(file,"Z",z);
        dini_IntSet(file,"VirtualWorld",GetPlayerVirtualWorld(playerid));
    }
    else
    {
        dini_Create(file);
    }
    format(labelstring,sizeof(labelstring),""COL_YELLOW"[ Name ]: "COL_WHITE"%s\n"COL_GREEN"[ Owner ]: "#COL_WHITE#"Available\n"COL_PURPLE" [ Level ] : %i\n"COL_GREEN"[ Price ]: "#COL_LIME#"%i\nUse /house to buy this lovely house",hname,lvl,price);
    HouseInfo[hID][hLabel] = Create3DTextLabel(labelstring,0xFF0000FF,x,y,z,25.0,GetPlayerVirtualWorld(playerid));
    HouseCount ++;
    return 1;
}
But When I Remove the
pawn Код:
if(AccInfo[playerid][lose] >= 1)
        {
it didnt receive any error Please help me
I DONT MAKE THIS SCRIPT!! THIS SCRIPT BELONG TO xganyx!!
This Script is Wazzup House Systems And Im Tryng to add to LuxAdmin
Reply
#2

NVM I Already Fixed It !!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)