stupid question :)...
#1

Код:
	CMD:p(playerid, params[])
	{
	    if(IsPlayerConnected(playerid))
	    {
	        new text;
	        if(sscanf(params, "s", text)) return SendClientMessage(playerid, COLOR_WHITE, "Koristenje: /pitaj [text]");
  		new sendername[MAX_PLAYER_NAME];
     		new string[126];
     		new text1;
		text1 = text;
	        GetPlayerName(playerid, sendername, sizeof(sendername));
		format(string, sizeof(string), "Pitanje od %s-a: %s", sendername, text1);
		ABroadCast(COLOR_ASKQ,string,1);
		SendClientMessage(playerid, COLOR_ASKQ, "Vase pitanje je poslato Adminima & GameHeroima.");
	    }
	    return 1;
	}
I'm new with ZCMD... I've try to learn how to script with ZCMD+sscanf but nothing. What's the problem with the command ?
Reply


Messages In This Thread
stupid question :)... - by NeroX98 - 18.11.2012, 07:44
Re: stupid question :)... - by JaKe Elite - 18.11.2012, 07:56
Re: stupid question :)... - by NeroX98 - 18.11.2012, 08:03
Re: stupid question :)... - by JaKe Elite - 18.11.2012, 08:05
Re: stupid question :)... - by Sting. - 18.11.2012, 08:40

Forum Jump:


Users browsing this thread: 1 Guest(s)