14.01.2014, 11:51
(
Последний раз редактировалось NimaKhan; 14.01.2014 в 14:00.
)
Thanks man , i can make only one case
how make another case ? when i try to make another case get some error ,
can u only make me 1 case for example
how make another case ? when i try to make another case get some error ,
can u only make me 1 case for example
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(dialogid == DIALOGCMDS)
{
switch(listitem)
{
case 0:
{
if(PlayerInfo[playerid][pVIP] >= 1)
{
if(GetPlayerMoney(playerid) >= 500)
{
GivePlayerWeapon(playerid, 4, 9999);
GivePlayerMoney(playerid, -500);
SendClientMessage(playerid, BLUE, "You have bought a Knife!");
}
else return SendClientMessage(playerid, RED, "[ERROR]: You don't have enough money to purchase this weapon!");
}
}
}
}
return 0;
}