What is the difference? - 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)
+--- Thread: What is the difference? (
/showthread.php?tid=599999)
delete -
xiaoniao - 02.02.2016
delete
Re: What is the difference? -
FreAkeD - 02.02.2016
The first one is using an include (easyDialog).
The second is using a stock function
https://sampwiki.blast.hk/wiki/Function.
The third is using a public function, you shouldnt be using that if you aren't going to use a timer
https://sampwiki.blast.hk/wiki/Public_functions.
Re: What is the difference? -
fuckingcruse - 02.02.2016
The first one is the easy dialog as said by freaked.
The second one the stock one is more useful. Like it can be used to make your own include file.
Код:
stock health(playerid)
{
GivePlayerHealth(playerid);
}
CMD:health(playerid)
{
health(playerid);
}
The last one is used mainly by the timers.
I suggest the stock(2nd one).
Re: What is the difference? -
]Rafaellos[ - 02.02.2016
https://sampforum.blast.hk/showthread.php?tid=570635
Re: What is the difference? -
itsCody - 02.02.2016
They're practically the same.
But, go with the first one.
Re: What is the difference? -
xiaoniao - 02.02.2016
delete
Re: What is the difference? -
xiaoniao - 02.02.2016
Quote:
Originally Posted by fuckingcruse
The first one is the easy dialog as said by freaked.
The second one the stock one is more useful. Like it can be used to make your own include file.
Код:
stock health(playerid)
{
GivePlayerHealth(playerid);
}
CMD:health(playerid)
{
health(playerid);
}
The last one is used mainly by the timers.
I suggest the stock(2nd one).
|
Thanks you.
But i din't use easydialog include.
Like this.
Код:
stock CheckAccount(playerid)
{
new SQLRow:rowid = yoursql_get_row(SQL:0, "users", "Name = %s", pName(playerid));
if (rowid != SQL_INVALID_ROW)
{
Login_Dialog(playerid);
}
else
{
Register_Dialog(playerid);
}
return 1;
}
Re: What is the difference? -
fuckingcruse - 02.02.2016
So use at onplayerconnect.
CheckAccount(playerid);