28.06.2013, 14:00 
	
	
	
		I guys!
I'm making a /givemoney command, but when I use the command, the server says: unknown command.
What do I do wrong?
thanks
	
	
	
I'm making a /givemoney command, but when I use the command, the server says: unknown command.
Код:
	if(!strcmp(cmdtext, "/givemoney", true))
	{
		new cmd[128],param1[130], param2[130],string[130],name1[MAX_PLAYER_NAME+1],name2[MAX_PLAYER_NAME+1];
		if(sscanf(cmdtext,"sdd",cmd[100],param1[128],param2[128]))
			return
			SendClientMessage(playerid, COLOR_WHITE, "GEBRUIK: /givemoney [spelerid] [bedrag] (=[playerid] [amount]");
		if(!IsPlayerConnected(param1[128]))
			return
			SendClientMessage(playerid, COLOR_RED, "Het door jouw ingegeven spelerid is niet verbonden. (=player isn't connected");
			
		GivePlayerMoney(param1[128],param2[128]);
		GetPlayerName(playerid, name1, MAX_PLAYER_NAME);
		GetPlayerName(param1[128], name2, MAX_PLAYER_NAME);
		format(string,sizeof(string),"%s heeft $ %d aan %s gegeven.", name1, param2, name2);
		SendClientMessageToAll(COLOR_INDIGO, string);
	return 1;
	}
thanks

