Command Problem
#1

What have i done wrong here that it says me You have entered a wrong command?
Код:
cmd:vip(playerid, params[])
{
	if(PlayerInfo[playerid][pDonateRank] == 1)
	{
		ShowPlayerDialog(playerid, 7483, DIALOG_STYLE_LIST, "VIP Features", "Vehicle Repairment($100)\nVehicle Refillment($100)\nClothes Corner(Free)\nVIP Color\nAdvertise", "Select", "Cancel");
	}
	else if(PlayerInfo[playerid][pDonateRank] == 2)
	{
		ShowPlayerDialog(playerid, 7483, DIALOG_STYLE_LIST, "VIP Features", "Vehicle Repairment($50)\nVehicle Refillment(Free)\nWeapons Pointshop\nClothes Corner\nVIP Color\nAdvertise\nFree Name Change\nFree Ph Change\nAdvertise", "Select", "Cancel");
	}
	else if(PlayerInfo[playerid][pDonateRank] >= 3)
	{
		ShowPlayerDialog(playerid, 7483, DIALOG_STYLE_LIST, "VIP Features", "Vehicle Repairment(Free)\nVehicle Refillment(Free)\nWeapons Pointshop\nClothes Corner\nVIP Color\nFree Name Change\nFree Name Change\nFree Ph Change\nAdvertise", "Select", "Cancel");
	}
	else if(PlayerInfo[playerid][pDonateRank] < 1)
	{
	    SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use this command!");
	}
	return 1;
}
Reply
#2

Change it to
PHP код:
CMD:vip(playeridparams[])
{
    if(
PlayerInfo[playerid][pDonateRank] == 1)
    {
        
ShowPlayerDialog(playerid7483DIALOG_STYLE_LIST"VIP Features""Vehicle Repairment($100)\nVehicle Refillment($100)\nClothes Corner(Free)\nVIP Color\nAdvertise""Select""Cancel");
    }
    else if(
PlayerInfo[playerid][pDonateRank] == 2)
    {
        
ShowPlayerDialog(playerid7483DIALOG_STYLE_LIST"VIP Features""Vehicle Repairment($50)\nVehicle Refillment(Free)\nWeapons Pointshop\nClothes Corner\nVIP Color\nAdvertise\nFree Name Change\nFree Ph Change\nAdvertise""Select""Cancel");
    }
    else if(
PlayerInfo[playerid][pDonateRank] >= 3)
    {
        
ShowPlayerDialog(playerid7483DIALOG_STYLE_LIST"VIP Features""Vehicle Repairment(Free)\nVehicle Refillment(Free)\nWeapons Pointshop\nClothes Corner\nVIP Color\nFree Name Change\nFree Name Change\nFree Ph Change\nAdvertise""Select""Cancel");
    }
    else if(
PlayerInfo[playerid][pDonateRank] < 1)
    {
        
SendClientMessageEx(playeridCOLOR_GRAD1"You are not authorized to use this command!");
    }
    return 
1;

Reply
#3

Ryder changed the "cmd" to "CMD".


@Ryder next time please explain what you did.
Reply
#4

Holy shit thank you guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)