Commands not working !
#1

Hello,
Here are some commands which are not working ! when i try like /announce, it just say : USAGE : /announce <message>

Hope you fix them all !
Код:
dcmd_fare(playerid,params[])
{
	new price2,pmodelid = GetVehicleModel(GetPlayerVehicleID(playerid));
	if(gTeam[playerid] != TEAM_DRIVER) return SendClientMessage(playerid,red,"ERROR: "lgrey"You aren't a "lyellow2"taxi driver"lgrey"!");
	if(PInfo[playerid][onduty] == 1) return SendClientMessage(playerid, red,"ERROR: "lyellow2"You're already on duty, please leave your car!");
	if(sscanf(params,"i",price2)) return SendClientMessage(playerid,red,"USAGE: "lgrey"/fare "lyellow2"[cost]") && SendClientMessage(playerid,red,""lblue"FUNCTION: "lgrey"This will set a price for each 10 seconds a player is in your taxi!");
	if(!IsTaxi(playerid,pmodelid)) return SendClientMessage(playerid,red,"ERROR:"lgrey"You must be in a "lyellow2"taxi"lgrey"!");
	if(price2 > 500) return SendClientMessage(playerid,red,""lwhite"*"lred"That's to much for 10 seconds!"lwhite"*");
	PInfo[playerid][fare2] = price2;
	PInfo[playerid][onduty] = 1;
	SendFMessageToAll(green,""lgreen"» Driver "lyellow2"%s(ID:%i) "lgreen"is now on duty! Fare: "lorange"%i "lgreen"per "lorange"10 seconds"lgreen"!",GetPName(playerid),playerid,price2);
	return 1;
}

dcmd_announce(playerid,params[])
{
    new text[128],string[128];
    if(PInfo[playerid][Level] < 3) return SendClientMessage(playerid,red,error);
    if(sscanf(params,"s[128]",text)) return SendClientMessage(playerid,green2,"USAGE: "lyellow2"/announce <message>");
    format(string,sizeof(string),"~w~%s",text);
    GameTextForAll(string,4000,3);
    return 1;
}
Thanks
Reply


Messages In This Thread
Commands not working ! - by Avi57 - 13.07.2012, 12:39
Re: Commands not working ! - by Cxnnor - 13.07.2012, 12:43
Re: Commands not working ! - by .FuneraL. - 13.07.2012, 12:46
Re: Commands not working ! - by clarencecuzz - 13.07.2012, 12:47
Re: Commands not working ! - by Devilxz97 - 13.07.2012, 12:49
Re: Commands not working ! - by leonardo1434 - 13.07.2012, 12:51
Re: Commands not working ! - by clarencecuzz - 13.07.2012, 12:54

Forum Jump:


Users browsing this thread: 3 Guest(s)