Command Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Command Problem (
/showthread.php?tid=387138)
Command Problem -
Laure - 23.10.2012
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;
}
Re: Command Problem -
[HK]Ryder[AN] - 23.10.2012
Change it to
PHP код:
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;
}
Re: Command Problem -
Faisal_khan - 23.10.2012
Ryder changed the "cmd" to "CMD".
@Ryder next time please explain what you did.
Re: Command Problem -
Laure - 23.10.2012
Holy shit thank you guys