help with /do command
#7

It must be something with your script that crashes it
Try this one
Код:
 	if(strcmp(cmd, "/do", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[128];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_WHITE, "[Usage] /do [action]");
				return 1;
			}
			if(PlayerInfo[playerid][pMaskuse] == 1)
			{
			  format(string, sizeof(string), "(( Stranger %s ))", result);
			}
			else
			{
				format(string, sizeof(string), "%s (( %s ))", result, GetPlayerNameEx(playerid));
			}
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		}
		return 1;
	}
Reply


Messages In This Thread
help with /do command - by adytzu32 - 07.01.2010, 20:15
Re: help with /do command - by Guso - 07.01.2010, 20:16
Re: help with /do command - by kmzr - 07.01.2010, 20:16
Re: help with /do command - by adytzu32 - 07.01.2010, 20:17
Re: help with /do command - by kmzr - 07.01.2010, 20:19
Re: help with /do command - by adytzu32 - 08.01.2010, 05:57
Re: help with /do command - by Guso - 08.01.2010, 06:44
Re: help with /do command - by adytzu32 - 08.01.2010, 06:46
Re: help with /do command - by Guso - 08.01.2010, 06:50
Re: help with /do command - by adytzu32 - 08.01.2010, 06:52

Forum Jump:


Users browsing this thread: 4 Guest(s)