What will happend if a delete this public in GF - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What will happend if a delete this public in GF (
/showthread.php?tid=259233)
What will happend if a delete this public in GF -
dud - 03.06.2011
Код:
public StoppedVehicle()
{
new Float:x,Float:y,Float:z;
new Float:distance,value;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInAnyVehicle(i))
{
new VID;
VID = GetPlayerVehicleID(i);
GetPlayerPos(i, x, y, z);
distance = floatsqroot(floatpower(floatabs(floatsub(x,SavePlayerPos[i][LastX])),2)+floatpower(floatabs(floatsub(y,SavePlayerPos[i][LastY])),2)+floatpower(floatabs(floatsub(z,SavePlayerPos[i][LastZ])),2));
value = floatround(distance * 3600);
if(UpdateSeconds > 1)
{
value = floatround(value / UpdateSeconds);
}
if(SpeedMode)
{
}
if(value == 0)
{
Gas[VID]++;
}
SavePlayerPos[i][LastX] = x;
SavePlayerPos[i][LastY] = y;
SavePlayerPos[i][LastZ] = z;
}
}
}
return 1;
}
Re: What will happend if a delete this public in GF -
Ash. - 03.06.2011
If it is not used, nothing will happen.
If it is used by something (which it probably is) - it will return an error and won't compile.
[RAGE]This forum requires that you wait 120 seconds between posts. Please try again in 80 seconds.[/RAGE]
Re: What will happend if a delete this public in GF -
Stigg - 03.06.2011
EDIT: To late.