Streamer error -
firemanjv - 06.12.2012
i have updated the streamer and now i get an error
Error
PHP код:
E:\E-RP (copy)2\gamemodes\lololo.pwn(16898) : error 017: undefined symbol "distance"
E:\E-RP (copy)2\gamemodes\lololo.pwn(16898) : warning 215: expression has no effect
E:\E-RP (copy)2\gamemodes\lololo.pwn(16898) : error 001: expected token: ";", but found ")"
E:\E-RP (copy)2\gamemodes\lololo.pwn(16898) : error 029: invalid expression, assumed zero
E:\E-RP (copy)2\gamemodes\lololo.pwn(16898) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
LINE 16898
PHP код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[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] == 0) format(szFileStr, sizeof(szFileStr), "This house is owned by\n%s\nLevel: %d\nID: %d",HouseInfo[iIndex][hOwner],HouseInfo[iIndex][hLevel],iIndex);
else format(szFileStr, sizeof(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(szFileStr, sizeof(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(1273, 23, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]);
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, .testlos = 1, .distance = 30.0);
++iIndex;
Re: Streamer error -
DaRk_RaiN - 06.12.2012
Try this:
PHP код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel("szFileStr", COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, 0,-1,-1,-1);
Re: Streamer error -
firemanjv - 06.12.2012
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 215: expression has no effect
E:\E-RP (copy)2\gamemodes\lololo.pwn(3394) : warning 215: expression has no effect
E:\E-RP (copy)2\gamemodes\lololo.pwn(3424) : warning 215: expression has no effect
E:\E-RP (copy)2\gamemodes\lololo.pwn(52472) : error 017: undefined symbol "distance"
E:\E-RP (copy)2\gamemodes\lololo.pwn(52472) : warning 215: expression has no effect
E:\E-RP (copy)2\gamemodes\lololo.pwn(52472) : error 001: expected token: ";", but found ")"
E:\E-RP (copy)2\gamemodes\lololo.pwn(52472) : error 029: invalid expression, assumed zero
E:\E-RP (copy)2\gamemodes\lololo.pwn(52472) : 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.
On line
PHP код:
HouseInfo[house][hTextID] = CreateDynamic3DTextLabel( string, COLOR_GREEN, HouseInfo[house][hExteriorX], HouseInfo[house][hExteriorY], HouseInfo[house][hExteriorZ]+0.5, 30.0, .testlos = 1, .distance = 30.0);
Whole
PHP код:
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
new string[128], house;
if(sscanf(params, "d", house)) return SendClientMessageEx(playerid, COLOR_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);
format( HouseInfo[house][hOwner], 128, "Nobody" );
HouseInfo[house][hGLUpgrade] = 1;
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~You have sold house %d.", house);
GameTextForPlayer(playerid, string, 10000, 3);
SaveHouses();
DestroyDynamicPickup(HouseInfo[house][hPickupID]);
HouseInfo[house][hPickupID] = CreateDynamicPickup(1273, 23, HouseInfo[house][hExteriorX], HouseInfo[house][hExteriorY], HouseInfo[house][hExteriorZ]);
DestroyDynamic3DTextLabel(HouseInfo[house][hTextID]);
format(string, sizeof(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] = CreateDynamic3DTextLabel( string, COLOR_GREEN, HouseInfo[house][hExteriorX], HouseInfo[house][hExteriorY], HouseInfo[house][hExteriorZ]+0.5, 30.0, .testlos = 1, .distance = 30.0);
return 1;
}
Re: Streamer error -
firemanjv - 06.12.2012
EDIT when i am changeing that line too i get this
PHP код:
E:\E-RP (copy)2\gamemodes\lololo.pwn(3362) : warning 215: expression has no effect
E:\E-RP (copy)2\gamemodes\lololo.pwn(3394) : warning 215: expression has no effect
E:\E-RP (copy)2\gamemodes\lololo.pwn(3424) : warning 215: expression has no effect
E:\E-RP (copy)2\gamemodes\lololo.pwn(16897) : warning 217: loose indentation
E:\E-RP (copy)2\gamemodes\lololo.pwn(16898) : warning 217: loose indentation
E:\E-RP (copy)2\gamemodes\lololo.pwn(52472) : error 017: undefined symbol "iIndex"
E:\E-RP (copy)2\gamemodes\lololo.pwn(52519) : error 017: undefined symbol "distance"
E:\E-RP (copy)2\gamemodes\lololo.pwn(52519) : warning 215: expression has no effect
E:\E-RP (copy)2\gamemodes\lololo.pwn(52519) : error 001: expected token: ";", but found ")"
E:\E-RP (copy)2\gamemodes\lololo.pwn(52519) : error 029: invalid expression, assumed zero
E:\E-RP (copy)2\gamemodes\lololo.pwn(52519) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Re: Streamer error -
Konstantinos - 06.12.2012
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.
Re: Streamer error -
firemanjv - 07.12.2012
I must evreything change to Streamdistance ??
Re: Streamer error -
firemanjv - 07.12.2012
THANK I UPDATED