Loose indentation
#1

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"
Reply
#2

PHP код:
stock GetXYInBackOfPlayer(const playerid, &Float:x, &Float:y, const Float:distance)
{
    new 
Float:a;
    
GetPlayerPos(playeridxya);
    
GetPlayerFacingAngle(playerida);
    if (
IsPlayerInAnyVehicle(playerid))
    {
        new 
vid=GetPlayerVehicleID(playerid);
        if (
vid && vid SS[NumberOfVehicles])GetVehicleZAngle(vida);
        }
    
-= (distance floatsin(-adegrees));
    
-= (distance floatcos(-adegrees));

Read Indentation Tutorial
Reply
#3

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
PHP код:
stock GetXYInBackOfPlayer(const playerid, &Float:x, &Float:y, const Float:distance)
{
    new 
Float:a;
    
GetPlayerPos(playeridxya);
    
GetPlayerFacingAngle(playerida);
    if (
IsPlayerInAnyVehicle(playerid))
    {
        new 
vid=GetPlayerVehicleID(playerid);
        if (
vid && vid SS[NumberOfVehicles])GetVehicleZAngle(vida);
        }
    
-= (distance floatsin(-adegrees));
    
-= (distance floatcos(-adegrees));

Read Indentation Tutorial
Thanks, u know about the second thing i asked?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)