IsPlayerInRangeOfPoint & CreateDynamicPickup Error - 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: IsPlayerInRangeOfPoint & CreateDynamicPickup Error (
/showthread.php?tid=361537)
IsPlayerInRangeOfPoint & CreateDynamicPickup Error -
Spookie98 - 21.07.2012
The CreateDynamicPickup line:
Код:
CreateDynamicPickup( 1273, 1, hInfo[ i ][ hOutsideX ], hInfo[ i ][ hOutsideY ], hInfo[ i ][ hOutsideZ ], -1, -1, -1, 100.0);
The error:
The IsPlayerInRangeOfPoint line:
Код:
IsPlayerInRangeOfPoint( i, 1.5, hInfo[ j ][ hOutsideX ], hInfo[ j ][ hOutsideY ], hInfo[ j ][ hOutsideZ ])
The error:
* The i is from a loop and the coordonaties are from the next array & enum :
Код:
#define MAX_HOUSES 200
enum hData
{
hID,
hOwned,
hOwner [ 21 ],
hLocked,
float:hOutsideX,
float:hOutsideY,
float:hOutsideZ,
float:hInsideX,
float:hInsideY,
float:hInsideZ,
hInterior,
hVirtual,
hPrice
}
new
hInfo[ MAX_HOUSES ][ hData ];
Re: IsPlayerInRangeOfPoint & CreateDynamicPickup Error -
ViniBorn - 21.07.2012
Replace
pawn Код:
enum hData
{
hID,
hOwned,
hOwner [ 21 ],
hLocked,
float:hOutsideX,
float:hOutsideY,
float:hOutsideZ,
float:hInsideX,
float:hInsideY,
float:hInsideZ,
hInterior,
hVirtual,
hPrice
}
With
pawn Код:
enum hData
{
hID,
hOwned,
hOwner [ 21 ],
hLocked,
Float:hOutsideX,
Float:hOutsideY,
Float:hOutsideZ,
Float:hInsideX,
Float:hInsideY,
Float:hInsideZ,
hInterior,
hVirtual,
hPrice
}