Posts: 536
Threads: 81
Joined: Mar 2017
Reputation:
0
Hello guys, can you give me the command witch changes the player color when the player spawns? like /spawncolor 0xFFFFFFFF but when I type it, it saves with dini and to OnPlayerConnect it loads than OnPlayerSpawn -> SetPlayerColor(playerid,SavedColor);
Posts: 27
Threads: 1
Joined: Feb 2017
You have error becouse argument color in SetPlayerColor is not string.
https://sampwiki.blast.hk/wiki/Function:SetPlayerColor read this.
Posts: 536
Threads: 81
Joined: Mar 2017
Reputation:
0
I know it, but how to save it with dini?
Posts: 27
Threads: 1
Joined: Feb 2017
Use sscanf and %x for hex.
Posts: 536
Threads: 81
Joined: Mar 2017
Reputation:
0
I will try to save it using dini_Int, not dini_Get with using decimal notation