new variable
#1

i have a variable in the server made like this:
Код:
new inshop = 0;
this code is for the whole server. if 1 player goes into the shop, the variable is 1 for everyone. how to make it so that the variable can be diffrent for each player?
Reply
#2

Код:
new inshop[MAX_PLAYERS];
Then set this when your players enter the shop:

Код:
inshop[playerid] =1;
Reply
#3

ty!!
Reply
#4

No nede to put new var = 0;, it's 0 by default.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)