How To Use Cases...
#1

hello my question is that can we use cases like stocks?

like we create case
pawn Код:
stock testing(playerid)
{
//codeeeeeee
}
and we use it like this..
pawn Код:
testing(playerid);
so can we use cases like this?
or any good and easy way? to repeat case
Reply
#2

I don't really understand your question.
Cases are used in switches.
https://sampwiki.blast.hk/wiki/Control_Structures#case
Switches and cases can be used inside stocks aswell.
Reply
#3

You can (re)use a function like that, yes. As the poster above me mentioned, cases are something else.
Reply
#4

alirght.. thanks i use stocks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)