What's the problem?
#2

Use this

Quote:

if (strcmp("/usedrug weed", cmdtext, true, 10) == 0)
{
new pWeed = Weed[playerid];
new pStoned = PlayerStoned[playerid];
new string4[256];
new string6[256];
if(pWeed < 1) {
SendClientMessage(playerid, COLOR_RED, "[P-RP]: You don't have any weed on you.");
return 0;
}
if(pWeed > 1) {
pWeed =pWeed-1;
pStoned = 1;
format(string4, sizeof(string4), "[P-RP]: You smoke some weed.", pWeed);
format(string6, sizeof(string6), "[P-RP]: Condition : Stoned", pStoned);
SendClientMessage(playerid, COLOR_GREEN, string4);
SendClientMessage(playerid, COLOR_GREEN, string6);
return 1;
}
}

Reply


Messages In This Thread
What's the problem? - by Ihsan_Cingisiz - 06.06.2010, 13:18
Re: What's the problem? - by Jochemd - 06.06.2010, 13:34
Re: What's the problem? - by Ihsan_Cingisiz - 06.06.2010, 13:51

Forum Jump:


Users browsing this thread: 1 Guest(s)