Currently having a problem.
#1

Hello, I have a problem with this one.
Код:
dcmd_m(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid))
{
new Vehicleid;
Vehicleid = GetPlayerVehicleID(playerid);
if(Vehicleid == police2)
{





new
output[128],
pName[MAX_PLAYER_NAME],
str[157];
if(sscanf(params, "m", output)) SendClientMessage(playerid, COLOR_RED, "Usage: /m [message]");
else
{
GetPlayerName(playerid, pName, sizeof(pName));
format(str, sizeof(str), " MEGAPHONE: Police Officer %s: %s!!!", pName, output);
ProxDetector(100.0, playerid, str, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW);

}
}
else
{
SendClientMessage(playerid, COLOR_RED, "This vehicle is not equiped with a megaphone.");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are currently not in any vehicle.");
}

return 1;
}
But for me it shows "MEGAPHONE: Police Officer %s: %s!!!" only.
Please help.
Reply


Messages In This Thread
Currently having a problem. - by Mystique - 05.02.2010, 13:34
Re: Currently having a problem. - by Mystique - 06.02.2010, 06:10
Re: Currently having a problem. - by Flake. - 06.02.2010, 06:40
Re: Currently having a problem. - by Mystique - 06.02.2010, 08:35
Re: Currently having a problem. - by MadeMan - 06.02.2010, 09:34
Re: Currently having a problem. - by Mystique - 06.02.2010, 16:06
Re: Currently having a problem. - by ¤Adas¤ - 06.02.2010, 16:13
Re: Currently having a problem. - by Mystique - 06.02.2010, 16:15
Re: Currently having a problem. - by Mystique - 07.02.2010, 06:57
Re: Currently having a problem. - by mansonh - 07.02.2010, 07:00

Forum Jump:


Users browsing this thread: 1 Guest(s)