20.03.2011, 19:31
I have 2 commands that for some reason don't work in game, would anyone have any idea whats wrong.
/buyhouse when i type that nothing happens
and /buylic
/buyhouse when i type that nothing happens
Код:
if(strcmp(cmd, "/houseupgrade", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pHouseAccepted] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You don't own a house!");
return 1;
}
ShowPlayerDialog(playerid,UPGRADEMENU1,DIALOG_STYLE_LIST,string,"House Interior Upgrade\nHouse Car Upgrade\nHouse Nametag Upgrade\nHouse Miscellaneous Upgrade","Proceed","Cancel");
return 1;
}
}
/*if(strcmp(cmd, "/houseupgrade", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pHouseAccepted] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You don't own a house!");
return 1;
}
else
{
ShowPlayerDialog(playerid,UPGRADEMENU1,DIALOG_STYLE_LIST,string,"House Interior Upgrade\nHouse Car Upgrade\nHouse Nametag Upgrade\nHouse Miscellaneous Upgrade","Proceed","Cancel");
}
}
return 1;
}*/
if(strcmp(cmd, "/buyhouse", true) == 0)
Код:
/*if(pickupid == iLic)
{
GameTextForPlayer(playerid, "~w~ /buylic to buy licenses", 5000, 5);
return 1;
}*/
Код:
/*if(strcmp(cmd, "/buylic", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,1490.2982,1305.6770,1093.2963))
{
ShowPlayerDialog(playerid, LICMENU, DIALOG_STYLE_LIST, "Buy License","Drivers License[$150]\nFly License[$1000]\nBoat License[$200]\nFishing License[$250]","Buy","Close");
}
else
{
SendClientMessage(playerid, COLOR_WHITE, " Server: Not at the DMV");
return 1;
}*/

