help cmd
#1

help me with this command to arm is not compiled something is wrong help me?


new buylevel;
CMD:buylevel(playerid,params[])
{
if(GetPlayerMoney(playerid) > 18000)
if(buylevel == 2) //level!
{
new year,month,day; getdate(year, month, day); new hour,minute,second; gettime(hour,minute,second);
GivePlayerMoney(playerid, -18000)
dUserSetINT(PlayerName2(playerid)).("level",(buyle vel));
PlayerInfo[playerid][Level] = buylevel;
format(string,sizeof(string),"[DONATE] %s Level %d on %d/%d/%d at %d:%d:%d", PlayerName2(playerid),
buylevel, day, month, year, hour, minute, second); SendClientMessage(playerid,blue,string);
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
}
else SendClientMessage(playerid, COLOR_WHITE, "You don't have that much!");
return 1;
}
Reply


Messages In This Thread
help cmd - by nbx2000 - 11.11.2018, 20:02
Re: help cmd - by AndreiWow - 11.11.2018, 20:09
Re: help cmd - by nbx2000 - 11.11.2018, 20:15
Re: help cmd - by Leaky - 12.11.2018, 01:12

Forum Jump:


Users browsing this thread: 1 Guest(s)