Sscanf Is Not Showing The True
#1

pawn Код:
//-----------------------------------Save pos-----------------------------------
CMD:sp(playerid,params[])
{
    #pragma unused params
    GetPlayerPos(playerid,Pos[playerid][0],Pos[playerid][1],Pos[playerid][2]); // save x,y and z for this player.
    GetPlayerFacingAngle(playerid,Pos[playerid][3]); // save the facing angle for this player.
    new string[128],name[MAX_PLAYER_NAME];
    format(string, sizeof(string), "%s(%u) Has Just Saved Their Current Possition",name,playerid);
    SendClientMessageToAll(0xFFFF00,string); // send him a red message.
    tinteriorid = GetPlayerInterior(playerid);
    return 1;
}
//-----------------------------------Load pos-----------------------------------
CMD:lp(playerid,params[]){
    #pragma unused params
    if(AccInfo[playerid][Jailed] == 1) return Inter_SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!");
    TimedTele(playerid, "Your Last Position!", Pos[playerid][0], Pos[playerid][1], Pos[playerid][2], tinteriorid, GetPlayerVirtualWorld(playerid), 10);
    new string[128],name[MAX_PLAYER_NAME];
    format(string, sizeof(string), "%s(%u) Has Just Teleported To Their Saved Possition",name,playerid);
    SendClientMessageToAll(0xFFFF00,string); // send him a red message.
    return 1;
}
Reply
#2

Try to change %u with %i
Reply
#3

pawn Код:
CMD:sp(playerid,params[])
{
    #pragma unused params
    GetPlayerPos(playerid,Pos[playerid][0],Pos[playerid][1],Pos[playerid][2]); // save x,y and z for this player.
    GetPlayerFacingAngle(playerid,Pos[playerid][3]); // save the facing angle for this player.
    new string[128],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,MAX_PLAYER_NAME]);
    format(string, sizeof(string), "%s(%i) Has Just Saved Their Current Possition",name,playerid);
    SendClientMessageToAll(0xFFFF00,string); // send him a red message.
    tinteriorid = GetPlayerInterior(playerid);
    return 1;
}
pawn Код:
CMD:lp(playerid,params[]){
    #pragma unused params
    if(AccInfo[playerid][Jailed] == 1) return Inter_SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!");
    TimedTele(playerid, "Your Last Position!", Pos[playerid][0], Pos[playerid][1], Pos[playerid][2], tinteriorid,     GetPlayerVirtualWorld(playerid), 10);
    new string[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    format(string, sizeof(string), "%s(%i) Has Just Teleported To Their Saved Possition",name,playerid);
    SendClientMessageToAll(0xFFFF00,string); // send him a red message.
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)