mysql onplayerlogin
#1

Hey can someone help me with onplayerlogin(playerid, string[]) ?

because w/e i make for my script it wont work, can someone please give an example?
Reply
#2

Well, I guess you already have a /login command, just do something like this
pawn Код:
if (strcmp(cmdtext, "/login", true) == 0)
{

  [...]

  OnPlayerLogin(playerid);
  return 1;
}
and somewhere else in your script
pawn Код:
stock OnPlayerLogin(playerid)
{
  // add your code here
  // you don't need to make it public unless you want to put it in a timer
}
Reply
#3

I guess he could do it alone..
I still don't understand what's the problem with the code I sent you on PM?
Reply
#4

Quote:
Originally Posted by MenaceX^
I guess he could do it alone..
I still don't understand what's the problem with the code I sent you on PM?
well you sended the code i got to work myself, i need the code howto extract data from a mysql database and giving a variable the value.
Reply
#5

аnyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)