17.07.2011, 18:22
I want to make a command, for hitmen, When they type /hitmanhq, They can choose, to go to upstairs, Or their interior, I got some errors, btw, here is the code.
At the top of the script:
The command thingy: ( Btw, Im using ZCMD ):
Somewhere in the script:
So, whats the error in it?
At the top of the script:
Код:
#define Hitman123 5305
Код:
CMD:hitmanhq(playerid, params[]) {
if(PlayerInfo[playerid][pLeader] == 8) && PlayerInfo[playerid][pMember] ==8)
{
ShowPlayerDialog( playerid, Hitman123, DIALOG_STYLE_LIST, "Hitman HQ", "Rooftop\nInterior", "Select", "Cancel"
Код:
if(dialogid == Hitman123)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
SetPlayerPos(playerid, 1830.68,-1302.82,120.27);
return 1;
}
case 1:
{
SetPlayerPos(playerid, 1830.68,-1302.82,120.27);
return 1;
}



