PDA

View Full Version : Help with /neon!


$$Money$$
29/12/2011, 10:19 AM
I get a job mechanic..then i typed /neon.
But there is no neon this is the pawn command
if(strcmp(cmd, "/neon", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] != 7) { return SendClientMessage(playerid, COLOR_GREY, " You are not a Mechanic !"); }
if(!IsPlayerInAnyVehicle(playerid)) { return SendClientMessage(playerid, COLOR_GREY, " You are not in a vehicle !"); }
if(PlayerInfo[playerid][pCash] < 2000) { return SendClientMessage(playerid, COLOR_GREY, " You cant afford the neon !"); }
new vehicleid = GetPlayerVehicleID(playerid);
if(IsInvalidNeonVehicle(vehicleid))
{
return SendClientMessage(playerid, COLOR_GREY, " You cant mod this vehicle !");
}
DisplayDialogForPlayer(playerid, 101);
}
}

Ironboy
29/12/2011, 10:33 AM
Have you added neon functions in OnDialogResponse"?

N0FeaR
29/12/2011, 12:42 PM
can i see dialogid == 101?