13.07.2013, 18:03
The variable is
Here is the code to check how much drugs you have
I want to make a little code to /buydrugs amount
Can someone help?
Thanks!
pawn Код:
enum pInfo
{
drugs//the variable that will store the player's amount of drugs he have.
}
pawn Код:
CMD:dinv(playerid,params[])//creating a checkweed cmd.
{
new string[128];//this is the variable which will store the info of the message we will send to the player.
format(string,sizeof(string),"You have %d drugs on you!",PlayerInfo[playerid][drugs]);//formating the message we will send to the player the info of his drugs.
SendClientMessage(playerid,-1,string);//sending the formated message.
return 1;
}
Can someone help?
Thanks!