Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:savep(playerid, params[])
- {
- new file[64], playerb;
- format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
- if(!dini_Exists(file)) dini_Create(file);
- dini_FloatSet(file, "X", PlayerInfo[playerid][pX]);
- dini_FloatSet(file, "Y", PlayerInfo[playerid][pY]);
- dini_FloatSet(file, "Z", PlayerInfo[playerid][pZ]);
- return 1;
- }
- //^Actually that command will save player X Y Z spawn
- X=0.000000
- Y=0.000000
- Z=0.000000
- //^But in scriptfiles player, X Y Z float still not change
- PlayerInfo[playerid][pX] = dini_Float(file, "X");
- PlayerInfo[playerid][pY] = dini_Float(file, "Y");
- PlayerInfo[playerid][pZ] = dini_Float(file, "Z");
- //^This stock loadchar was i make
- //And this is the revision i make for make sure the CMD working, but nothing happend still 0 X Y Z player in scriptfiles
- CMD:savep(playerid, params[])
- {
- new file[64], playerb, float X, float Y, float Z;
- format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
- if(!dini_Exists(file)) dini_Create(file);
- dini_FloatSet(file, "X", PlayerInfo[playerid][pX] = X);
- dini_FloatSet(file, "Y", PlayerInfo[playerid][pY] = Y);
- dini_FloatSet(file, "Z", PlayerInfo[playerid][pZ] = Z);
- return 1;
- }
- //^The command was i change/revision
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement