Question about strval
#4

ok I created this command to test it it out but it would not compile the compiler keeps crashing

here is the command anything wrong with this

Код:
CMD:test(playerid,params[])
{
	if(IsPlayerAdmin(playerid))
	{
		new input[128];
		new string[128];
		new value;
		new name[128];
		if(sscanf(params,"s",input)
		{
		    return "SYNTAX /test [input]");
		}
  		GetPlayerName(playerid,name,sizeof(name));
		val = strval(input);
		format(string,128,"~TEST~[%s] has inputed %s and the value number is %i",inputtext,value);
		SendClientMessageToAll(DARKBLUE,string);
	}
	else
	{
	    SendClientMessage(playerid, RED, "ERROR");
	}
	return 1;
}
I know it is this command because I commented it out and it worked perfectly fine
Reply


Messages In This Thread
Question about strval - by horsemeat - 22.03.2013, 19:30
Re: Question about strval - by Rock - 22.03.2013, 19:31
Re: Question about strval - by horsemeat - 22.03.2013, 19:32
Re: Question about strval - by horsemeat - 22.03.2013, 19:46
Re: Question about strval - by mastermax7777 - 22.03.2013, 21:14
Re: Question about strval - by Tika Spic - 22.03.2013, 21:16
Re: Question about strval - by horsemeat - 22.03.2013, 23:07
Re: Question about strval - by horsemeat - 22.03.2013, 23:13
Re: Question about strval - by Misiur - 22.03.2013, 23:27
Re: Question about strval - by Basssiiie - 22.03.2013, 23:28

Forum Jump:


Users browsing this thread: 3 Guest(s)