Save Reason & Playerid
#1

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))
Reply
#2

Would you like to only save it for a logging or also load the data later?
Reply
#3

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)
Reply
#4

Do you have a login/register system?
Reply
#5

Quote:
Originally Posted by Lucases
Посмотреть сообщение
Do you have a login/register system?
yes I have
Reply
#6

What do you use? y_ini or Sqlite?
Reply
#7

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.)
Reply
#8

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.
Reply
#9

I dont wanna switch, not yet.

Can someone help me at this?
Reply
#10

Quote:
Originally Posted by pulsare
Посмотреть сообщение
I dont wanna switch, not yet.

Can someone help me at this?
Do you want to switch later when you have more code? Switch now when it is very easy.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)