What is the difference?
#1

delete
Reply
#2

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

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

https://sampforum.blast.hk/showthread.php?tid=570635
Reply
#5

They're practically the same.
But, go with the first one.
Reply
#6

delete
Reply
#7

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;
}
Reply
#8

So use at onplayerconnect.
CheckAccount(playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)