25.03.2012, 22:20
Hi there,
I want to know if there is an easy way of getting a players id from another command?
For example I define 'forplayerid' in one command and can use it outside of that command aswell.
I tried making a global variable:
Is there anyway to make this work? I use sscanf2 but the id's seem to get mixed up all the time.
I want to know if there is an easy way of getting a players id from another command?
For example I define 'forplayerid' in one command and can use it outside of that command aswell.
I tried making a global variable:
pawn Код:
new ID; // Top of script
ID = forplayerid; // In the command
SendClientMessage(ID, COLOR_WHITE, "Test"); // In the second command