SA-MP Forums Archive
error when compile - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error when compile (/showthread.php?tid=404778)



error when compile - Shazwan - 04.01.2013

Код 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 ")" ??


Re: error when compile - YoYo123 - 04.01.2013

Show me line number 16925.


Re: error when compile - Shazwan - 04.01.2013

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


Re: error when compile - Shazwan - 04.01.2013

idk what the problem


Re: error when compile - YoYo123 - 04.01.2013

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