error when compile
#1

Код HTML:
G:\True Reality Roleplay v2.4\pawno\TRRP.pwn(16925) : warning 215: expression has no effect
G:\True Reality Roleplay v2.4\pawno\TRRP.pwn(16925) : error 001: expected token: ";", but found ")"
G:\True Reality Roleplay v2.4\pawno\TRRP.pwn(16925) : error 029: invalid expression, assumed zero
G:\True Reality Roleplay v2.4\pawno\TRRP.pwn(16925) : fatal error 107: too many error messages on one line
but in the script its already put this ";" but why it say found ")" ??
Reply
#2

Show me line number 16925.
Reply
#3

PHP код:
if(HouseInfo[iIndex][hOwned]) {
            if(
HouseInfo[iIndex][hRentable] == 0format(szFileStrsizeof(szFileStr), "This house is owned by\n%s\nLevel: %d\nID: %d",HouseInfo[iIndex][hOwner],HouseInfo[iIndex][hLevel],iIndex);
            else 
format(szFileStrsizeof(szFileStr), "This house is owned by\n%s\nRent: $%d\nLevel: %d\nID: %d\nType /rentroom to rent a room",HouseInfo[iIndex][hOwner],HouseInfo[iIndex][hRentFee],HouseInfo[iIndex][hLevel],iIndex);
        }
        else 
format(szFileStrsizeof(szFileStr), "This house is\n for sale!\n Description: %s\nCost: $%d\n Level: %d\nID: %d\nTo buy this house type /buyhouse",HouseInfo[iIndex][hDescription],HouseInfo[iIndex][hValue],HouseInfo[iIndex][hLevel],iIndex);
        
HouseInfo[iIndex][hPickupID] = CreateDynamicPickup(127323HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]);
        
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStrCOLOR_GREENHouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, .testlos 1, .distance 30.0);
        ++
iIndex;
    }
    return 
fclose(iFileHandle);

the line 16925 start at Houseinfo[index][htextid]....................distance
Reply
#4

idk what the problem
Reply
#5

There is no such function as "CreateDynamic3DTextLabel". Use "Create3DTextLabel" instead.
https://sampwiki.blast.hk/wiki/Create3DTextLabel
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)