[HELP] Player's Color Saved +REP1
#1

Help me guys, how to make Player's Color saved with using DINI?
#Sorryformybadenglish
Reply
#2

Well save it the same way you save player's name, just use GetPlayerColor(playerid) instead of GetPlayerName(playerid)..
Reply
#3

First off make the player colour command

pawn Код:
CMD:yourcolorcommand(playerid, params[])
{
    SetPlayerColor(playerid, 2);
    dini_Set(file, "Colour", GetPlayerColor(playerid));
    return 1;
}
Then when they connect fetch the colour from the file and SetPlayerColor (Make sure you make enum's to save all the data.
Reply
#4

What the Dini_Set Functions ?
Reply
#5

Here's the full explanation about dini functions: here
Also a tutorial to help you here

In your case you should use dini_IntSet and dini_Int to fetch it, I could make the script for you if you can't do it.
Reply
#6

Quote:
Originally Posted by VenomMancer
Посмотреть сообщение
What the Dini_Set Functions ?
Basically, it is the system that saves stuff
Reply
#7

Quote:
Originally Posted by xVIP3Rx
Посмотреть сообщение
Here's the full explanation about dini functions: here
Also a tutorial to help you here

In your case you should use dini_IntSet and dini_Int to fetch it, I could make the script for you if you can't do it.
Please make me ones
and i will give u 1+ rep
Reply
#8

help me guys for make color saved system
Reply
#9

easy to make,but tell me,what is the use of the color saving thing?what do you want it for?so i will let it do the thing you want it for.
Reply
#10

i dont understand ..
i just want, someone can make me color saved (Dini)!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)