Got 4 errors - 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: Got 4 errors (
/showthread.php?tid=472261)
Got 4 errors -
thomaswilliams - 27.10.2013
Hey, i got these errors
PHP код:
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(5051) : warning 215: expression has no effect
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(5084) : warning 215: expression has no effect
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(5114) : warning 215: expression has no effect
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(20186) : error 017: undefined symbol "streamdistance"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(20186) : warning 215: expression has no effect
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(20186) : error 001: expected token: ";", but found ")"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(20186) : error 029: invalid expression, assumed zero
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(20186) : 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.
In this code:
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, .streamdistance = 30.0);
++iIndex;
}
return fclose(iFileHandle);
}
[/php]
Re: Got 4 errors - Patrick - 27.10.2013
Remove the .streamdistance = & .testlos = also update your include and plugin streamer
CreateDynamic3DTextLabel native
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);
Re: Got 4 errors -
Konstantinos - 27.10.2013
I'm not sure why it does that. When I use .parameter_name, the compiler does not find any error.
pawn Код:
CreateDynamic3DTextLabel("_", -1, 0.0, 0.0, 0.05, 30.0, .testlos = 1, .streamdistance = 30.0);
It compiles fine. Just use it with its default parameters except testlost and streamdistance.
pawn Код:
CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5, 30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 30.0);
Re: Got 4 errors -
thomaswilliams - 27.10.2013
Got these:
PHP код:
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(5050) : warning 215: expression has no effect
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(5083) : warning 215: expression has no effect
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(5113) : warning 215: expression has no effect
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(20600) : error 017: undefined symbol "SetDynamicObjectMaterial"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(20599) : warning 204: symbol is assigned a value that is never used: "testobject"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(52435) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(52475) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(52511) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(52568) : error 017: undefined symbol "Streamer_SetArrayData"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(52574) : error 017: undefined symbol "Streamer_SetArrayData"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(52701) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(69920) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(69950) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(69955) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(69960) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(69965) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(69970) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(69975) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(69980) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(69985) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(69990) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(69995) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(70000) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(70005) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(70010) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(70015) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(70020) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(70025) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(70030) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Thomas Williams\Desktop\Our Server\gamemodes\GTA.pwn(70035) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Re: Got 4 errors -
Konstantinos - 27.10.2013
Do you include streamer file?
pawn Код:
#include <a_samp>
#include <streamer>
Unless you've an older version of streamer.inc
Re-download the streamer and replace sscanf.dll (Windows) or sscanf.so (Linux) and streamer.inc files. Then re-compile.