11.11.2018, 20:02
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;
}
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;
}