Sscanf Is Not Showing The True - 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: Sscanf Is Not Showing The True (
/showthread.php?tid=398201)
Sscanf Is Not Showing The True -
Windrush - 08.12.2012
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;
}
Re: Sscanf Is Not Showing The True -
RenovanZ - 08.12.2012
Try to change %u with %i
Re: Sscanf Is Not Showing The True -
V_LOPE - 08.12.2012
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;
}