What's wrong with it
#1

Код:
if(strcmp(cmd, "/gps", true) == 0) //GPS
{
	if(PlayerInfo[playerid][pManoDer] != 125 && PlayerInfo[playerid][pManoIzq] != 125){SendClientMessage(playerid, Rojo, "* You do not have a GPS in hand"); return 1;}
	ShowPlayerDialog(playerid,dGPS,DIALOG_STYLE_LIST, "{FFFFFF}System GPS", "» Jobs\n» Banks\n» Houses", "Accept", "Closet");
}
return 1;
}
GM does not compile me with this
Reply
#2

if not compile it to show errors ~.~
Reply
#3

what errors are u getting?
Reply
#4

PHP код:
if(strcmp(cmd"/gps"true) == 0//GPS
{
    if(
PlayerInfo[playerid][pManoDer] != 125 && PlayerInfo[playerid][pManoIzq] != 125){
        
SendClientMessage(playeridRojo"* You do not have a GPS in hand");
        return 
1;
    }
    
ShowPlayerDialog(playerid,dGPS,DIALOG_STYLE_LIST"{FFFFFF}System GPS""» Jobs\n» Banks\n» Houses""Accept""Closet");
}

return 
1//so myself sitting here, no one sees me :P

Reply
#5

what error did you get ?
Reply
#6

Код:
if(strcmp(cmd, "/gps", true) == 0) //GPS
{
	if(PlayerInfo[playerid][pManoDer] != 125 && PlayerInfo[playerid][pManoIzq] != 125)return SendClientMessage(playerid, Rojo, "* You do not have a GPS in hand");
	ShowPlayerDialog(playerid,dGPS,DIALOG_STYLE_LIST, "{FFFFFF}System GPS", "» Jobs\n» Banks\n» Houses", "Accept", "Closet");
        return 1;
}
Reply
#7

Try changing this bit

Код:
{
	if(PlayerInfo[playerid][pManoDer] != 125 && PlayerInfo[playerid][pManoIzq] != 125){SendClientMessage(playerid, Rojo, "* You do not have a GPS in hand"); return 1;}
	ShowPlayerDialog(playerid,dGPS,DIALOG_STYLE_LIST, "{FFFFFF}System GPS", "» Jobs\n» Banks\n» Houses", "Accept", "Closet");
}
to

Код:
{
    if(PlayerInfo[playerid][pManoDer] != 125 && PlayerInfo[playerid][pManoIzq] != 125){
        SendClientMessage(playerid, Rojo, "* You do not have a GPS in hand");
        return 1;
    }
    ShowPlayerDialog(playerid,dGPS,DIALOG_STYLE_LIST, "{FFFFFF}System GPS", "» Jobs\n» Banks\n» Houses", "Accept", "Closet");
}
Reply
#8

pawn Код:
if(strcmp(cmd, "/gps", true) == 0) //GPS
{
    if(PlayerInfo[playerid][pManoDer] != 125 && PlayerInfo[playerid][pManoIzq] != 125) return SendClientMessage(playerid, Rojo, "* You do not have a GPS in hand");
    ShowPlayerDialog(playerid,dGPS,DIALOG_STYLE_LIST, "{FFFFFF}System GPS", "» Jobs\n» Banks\n» Houses", "Accept", "Closet");
}
return 1;
}
Don't know what your errors are but this might work.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)