Streamer error
#1

i have updated the streamer and now i get an error

Error

PHP код:
E:\E-RP (copy)2\gamemodes\lololo.pwn(16898) : error 017undefined symbol "distance"
E:\E-RP (copy)2\gamemodes\lololo.pwn(16898) : warning 215expression has no effect
E
:\E-RP (copy)2\gamemodes\lololo.pwn(16898) : error 001expected token";"but found ")"
E:\E-RP (copy)2\gamemodes\lololo.pwn(16898) : error 029invalid expressionassumed zero
E
:\E-RP (copy)2\gamemodes\lololo.pwn(16898) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase 
LINE 16898

PHP код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStrCOLOR_GREENHouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, .testlos 1, .distance 30.0); 
Whole lines

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
Reply
#2

Try this:

PHP код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel("szFileStr"COLOR_GREENHouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.00,-1,-1,-1); 
Reply
#3

I have tried it but it doesn't work

but i get now an error on an other line

PHP код:
E:\E-RP (copy)2\gamemodes\lololo.pwn(3362) : warning 215expression has no effect
E
:\E-RP (copy)2\gamemodes\lololo.pwn(3394) : warning 215expression has no effect
E
:\E-RP (copy)2\gamemodes\lololo.pwn(3424) : warning 215expression has no effect
E
:\E-RP (copy)2\gamemodes\lololo.pwn(52472) : error 017undefined symbol "distance"
E:\E-RP (copy)2\gamemodes\lololo.pwn(52472) : warning 215expression has no effect
E
:\E-RP (copy)2\gamemodes\lololo.pwn(52472) : error 001expected token";"but found ")"
E:\E-RP (copy)2\gamemodes\lololo.pwn(52472) : error 029invalid expressionassumed zero
E
:\E-RP (copy)2\gamemodes\lololo.pwn(52472) : fatal error 107too many error messages on one line

Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


4 Errors

On line
PHP код:
        HouseInfo[house][hTextID] = CreateDynamic3DTextLabelstringCOLOR_GREENHouseInfo[house][hExteriorX], HouseInfo[house][hExteriorY], HouseInfo[house][hExteriorZ]+0.530.0, .testlos 1, .distance 30.0); 
Whole
PHP код:
    new playername[MAX_PLAYER_NAME];
        
GetPlayerName(playeridplayernamesizeof(playername));

        new 
string[128], house;
        if(
sscanf(params"d"house)) return SendClientMessageEx(playeridCOLOR_WHITE"USAGE: /asellhouse [houseid]");

        
HouseInfo[house][hLock] = 1;
        new 
ip[32];
        
GetPlayerIp(playerid,ip,sizeof(ip));
        
format(string,sizeof(string),"Administrator %s (IP: %s) has admin-sold house ID %d (was owned by %s).",GetPlayerNameEx(playerid),ip,house,HouseInfo[house][hOwner]);
        
Log("logs/house.log"string);
        
ClearHouse(house);
        
formatHouseInfo[house][hOwner], 128"Nobody" );
        
HouseInfo[house][hGLUpgrade] = 1;
        
PlayerPlaySound(playerid10520.00.00.0);
        
format(stringsizeof(string), "~w~You have sold house %d."house);
        
GameTextForPlayer(playeridstring100003);
        
SaveHouses();
        
DestroyDynamicPickup(HouseInfo[house][hPickupID]);
        
HouseInfo[house][hPickupID] = CreateDynamicPickup(127323HouseInfo[house][hExteriorX], HouseInfo[house][hExteriorY], HouseInfo[house][hExteriorZ]);
        
DestroyDynamic3DTextLabel(HouseInfo[house][hTextID]);
        
format(stringsizeof(string), "This home is\n for sale!\n Description: %s\nCost: $%d\n Level: %d\n/buyhouse to buy it.",HouseInfo[house][hDescription],HouseInfo[house][hValue],HouseInfo[house][hLevel]);
        
HouseInfo[house][hTextID] = CreateDynamic3DTextLabelstringCOLOR_GREENHouseInfo[house][hExteriorX], HouseInfo[house][hExteriorY], HouseInfo[house][hExteriorZ]+0.530.0, .testlos 1, .distance 30.0);
        return 
1;
    } 
Reply
#4

EDIT when i am changeing that line too i get this

PHP код:
E:\E-RP (copy)2\gamemodes\lololo.pwn(3362) : warning 215expression has no effect
E
:\E-RP (copy)2\gamemodes\lololo.pwn(3394) : warning 215expression has no effect
E
:\E-RP (copy)2\gamemodes\lololo.pwn(3424) : warning 215expression has no effect
E
:\E-RP (copy)2\gamemodes\lololo.pwn(16897) : warning 217loose indentation
E
:\E-RP (copy)2\gamemodes\lololo.pwn(16898) : warning 217loose indentation
E
:\E-RP (copy)2\gamemodes\lololo.pwn(52472) : error 017undefined symbol "iIndex"
E:\E-RP (copy)2\gamemodes\lololo.pwn(52519) : error 017undefined symbol "distance"
E:\E-RP (copy)2\gamemodes\lololo.pwn(52519) : warning 215expression has no effect
E
:\E-RP (copy)2\gamemodes\lololo.pwn(52519) : error 001expected token";"but found ")"
E:\E-RP (copy)2\gamemodes\lololo.pwn(52519) : error 029invalid expressionassumed zero
E
:\E-RP (copy)2\gamemodes\lololo.pwn(52519) : fatal error 107too many error messages on one line

Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase 
Reply
#5

pawn Код:
native Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
The old version used distance; the new version uses streamdistance.

Make sure you have the latest include file too.
Reply
#6

I must evreything change to Streamdistance ??
Reply
#7

THANK I UPDATED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)