Posts: 88
Threads: 16
Joined: Oct 2017
Hey,
I just wanna know how to save a Reason or Playerid Name in a for example Ban Command.
The PlayerName(the playerid who banned the player)
and the Reason(why) and how to get them later ?
Like a Banreason when the Player connects (in another public then) "Your account was banned, reason: (reason) admin: (admin)
ocmd:dc(playerid,params[])
{
new pid,reason[31];
if(sscanf(params,"us", pid, reason))
Posts: 578
Threads: 40
Joined: Dec 2016
Would you like to only save it for a logging or also load the data later?
Posts: 88
Threads: 16
Joined: Oct 2017
Quote:
Originally Posted by Meller
Would you like to only save it for a logging or also load the data later?
|
yes Like I explained its like a Banreason that is getting saved and the Player gets this Message (reason)
Posts: 217
Threads: 1
Joined: Jul 2017
Reputation:
0
Do you have a login/register system?
Posts: 88
Threads: 16
Joined: Oct 2017
Quote:
Originally Posted by Lucases
Do you have a login/register system?
|
yes I have
Posts: 217
Threads: 1
Joined: Jul 2017
Reputation:
0
What do you use? y_ini or Sqlite?
Posts: 47
Threads: 3
Joined: Feb 2017
Reputation:
0
I'd recommend upgrading to MYSQL as it's more efficient and will provide a lot more 'clean' opportunities in the future.
I know there's a few guides throughout the forums. (This also helps in the future if you want to provide a UCP for your players.)
Posts: 217
Threads: 1
Joined: Jul 2017
Reputation:
0
Or switch to Sqlite which is included in SA:MP server folder already and doesn't need a lot of time to learn it.
It doesn't need weird and big programs like WAMP to work because it's portable.
Posts: 88
Threads: 16
Joined: Oct 2017
I dont wanna switch, not yet.
Can someone help me at this?