4 Erros
#10

Put it inside the loop
pawn Code:
YCMD:s(playerid, params[], help)
{
    new Float:x,Float:y,Float:z,Float:angle,string[145];
   
    if(IsPlayerInAnyVehicle(playerid))
    {
        GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
        GetVehicleZAngle(GetPlayerVehicleID(playerid),angle);
    }
    else
    {
        GetPlayerPos(playerid,x,y,z);
        GetPlayerFacingAngle(playerid,angle);
    }
   
    for(new i;i<3;i++)
    {
        if(!PPosition[playerid][i][SavedPosition])continue;
        PPosition[playerid][i][XPos] = x;
        PPosition[playerid][i][YPos] = y;
        PPosition[playerid][i][ZPos] = z;
        PPosition[playerid][i][PAngle] = angle;
        PPosition[playerid][i][SavedPosition] = 1;
        break;
    }
    SendClientMessage(playerid,0x22B998AA,"Position saved! Type /l to load!");
    return 1;
}
EDITED few seconds after posting.
Reply


Messages In This Thread
4 Erros - by anassmaroc - 25.07.2015, 12:58
AW: 4 Erros - by Mencent - 25.07.2015, 13:14
Re : AW: 4 Erros - by anassmaroc - 25.07.2015, 13:17
Re: 4 Erros - by xVIP3Rx - 25.07.2015, 13:27
Re : Re: 4 Erros - by anassmaroc - 25.07.2015, 13:35
Re: 4 Erros - by xVIP3Rx - 25.07.2015, 13:40
Re : 4 Erros - by anassmaroc - 25.07.2015, 15:28
Re: 4 Erros - by xVIP3Rx - 25.07.2015, 15:29
Re : 4 Erros - by anassmaroc - 25.07.2015, 15:32
Re: 4 Erros - by xVIP3Rx - 25.07.2015, 15:41

Forum Jump:


Users browsing this thread: 1 Guest(s)