Saving player pos
#1

Hi i used that script http://forum.sa-mp.com/showthread.ph...layer+Position to save the player pos but if the player don't have a file in scriptfiles it spawn him in x,y,z=0 i want the script if he don't have a file he spawn at the normal player spawn
Reply
#2

pawn Код:
#define SPAWN_FILE "save_%s.ini" // Change this
OnPlayerSpawn:
new string[5+4+MAX_PLAYER_NAME+10], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), SPAWN_FILE, name);
if(!fexist(string)) return 1;
Not sure if it works, I wrote it on this little input box. May/may not have errors
Reply
#3

it didn't work now he never spawn at his saved pos
Reply
#4

Can you read?

"#define SPAWN_FILE "save_%s.ini" // Change this"
Reply
#5

i did i dont save in a file just %S.ini i changed it it don't work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)