mysql onplayerlogin - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: mysql onplayerlogin (
/showthread.php?tid=69322)
mysql onplayerlogin -
Think - 17.03.2009
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?
Re: mysql onplayerlogin -
[RP]Rav - 17.03.2009
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
}
Re: mysql onplayerlogin -
MenaceX^ - 17.03.2009
I guess he could do it alone..
I still don't understand what's the problem with the code I sent you on PM?
Re: mysql onplayerlogin -
Think - 17.03.2009
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.
Re: mysql onplayerlogin -
Think - 17.03.2009
аnyone?