saved and loaded positions -->please help! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: saved and loaded positions -->please help! (
/showthread.php?tid=89557)
saved and loaded positions -->please help! -
nuriel8833 - 02.08.2009
I saw that script here at the forum:
pawn Код:
new pos[MAX_PLAYERS][3];
if(strcmp(cmdtext, "/s", true) == 0)
{
new str[256], playername[256];
SendClientMessage(playerid, GREEN, "Saved your coordinates!");
GetPlayerPos(playerid,pos[playerid][0],pos[playerid][1],pos[playerid][2]);
GetPlayerName(playerid,playername,256);
format(str, 256, "%s saved his coordinates.",playername);
print(str);
return 1;
}
if(strcmp(cmdtext, "/l", true) == 0)
{
new str[256], playername[256];
SendClientMessage(playerid, GREEN, "Loaded your coordinates!");
SetPlayerPos(playerid,pos[playerid][0],pos[playerid][1],pos[playerid][2]);
GetPlayerName(playerid,playername,256);
format(str, 256, "%s loaded his coordinates.",playername);
print(str);
return 1;
}
}
And I want to know how to do that you need touse the command like that:
/s %d
%d = 1-200
And how to save also the angel of the player (a)
And how can I that the positions will save in a file like that:
Poistion 1: X Y Z A
In a file
can someone fix my code?
tanks for helpers
Re: saved and loaded positions -->please help! -
saiberfun - 02.08.2009
u need to use strtok n more variables^^
here u find everything u need
https://sampwiki.blast.hk/wiki/Scripting_Basics
https://sampwiki.blast.hk/wiki/Tutorial_of_strtok
https://sampwiki.blast.hk/wiki/Strtok
Re: saved and loaded positions -->please help! -
nuriel8833 - 03.08.2009
I didnt understand anythingcan you just make the code
Re: saved and loaded positions -->please help! -
SpiderPork - 03.08.2009
Quote:
Originally Posted by nuriel8833
I didnt understand anythingcan you just make the code 
|
If somebody else makes it for you, you'll never learn how to script.
Re: saved and loaded positions -->please help! -
Jakku - 03.08.2009
Quote:
Originally Posted by SpiderPork
Quote:
Originally Posted by nuriel8833
I didnt understand anythingcan you just make the code 
|
If somebody else makes it for you, you'll never learn how to script.
|
So true....
Re: saved and loaded positions -->please help! -
nuriel8833 - 03.08.2009
So someone can just show me that did he had for the script and explain that and then i will learn
Re: saved and loaded positions -->please help! -
nuriel8833 - 03.08.2009
Ummm 2nd page please help me!!!
Re: saved and loaded positions -->please help! -
nuriel8833 - 03.08.2009
*bump*
cmon again 2nd page please help me!!!
Re: saved and loaded positions -->please help! -
Correlli - 03.08.2009
Stop bumping?
Re: saved and loaded positions -->please help! -
nuriel8833 - 03.08.2009
Quote:
Originally Posted by Don Correlli
Stop bumping?
|
why

I need help!!!!!!!!!!!!!!!!!1