Loose indentation - 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: Loose indentation (
/showthread.php?tid=647779)
Loose indentation -
IdonTmiss - 10.01.2018
The line with SS[NumberOfVehicles]'s the problem
pawn Код:
stock GetXYInBackOfPlayer(const playerid, &Float:x, &Float:y, const Float:distance)
{
new Float:a; GetPlayerPos(playerid, x, y, a); GetPlayerFacingAngle(playerid, a);
if (IsPlayerInAnyVehicle(playerid)) { new vid=GetPlayerVehicleID(playerid);
if (vid > 0 && vid < SS[NumberOfVehicles]) GetVehicleZAngle(vid, a); }
x -= (distance * floatsin(-a, degrees)); y -= (distance * floatcos(-a, degrees));
}
and yeah i dont want to use
And yeah how to setup this thing, i mean what to exchange with localhost, like the username of the details of FTP or?
Код:
#define MAILER_URL "localhost/mailer.php"
Re: Loose indentation -
RogueDrifter - 10.01.2018
PHP код:
stock GetXYInBackOfPlayer(const playerid, &Float:x, &Float:y, const Float:distance)
{
new Float:a;
GetPlayerPos(playerid, x, y, a);
GetPlayerFacingAngle(playerid, a);
if (IsPlayerInAnyVehicle(playerid))
{
new vid=GetPlayerVehicleID(playerid);
if (vid > 0 && vid < SS[NumberOfVehicles])GetVehicleZAngle(vid, a);
}
x -= (distance * floatsin(-a, degrees));
y -= (distance * floatcos(-a, degrees));
}
Read
Indentation Tutorial
Re: Loose indentation -
IdonTmiss - 10.01.2018
Quote:
Originally Posted by RogueDrifter
PHP код:
stock GetXYInBackOfPlayer(const playerid, &Float:x, &Float:y, const Float:distance)
{
new Float:a;
GetPlayerPos(playerid, x, y, a);
GetPlayerFacingAngle(playerid, a);
if (IsPlayerInAnyVehicle(playerid))
{
new vid=GetPlayerVehicleID(playerid);
if (vid > 0 && vid < SS[NumberOfVehicles])GetVehicleZAngle(vid, a);
}
x -= (distance * floatsin(-a, degrees));
y -= (distance * floatcos(-a, degrees));
}
Read Indentation Tutorial
|
Thanks, u know about the second thing i asked?