IDK what to do at this point.
#1

I have the CMD.
Код:
if(strcmp(cmd, "/walkietalkie", true) == 0 || strcmp(cmd, "/wt", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new freq = PlayerInfo[playerid][pWalkieFreq];
			new length = strlen(cmdtext);
			if(PlayerInfo[playerid][pWalkieFreq] == 0)
			{
        SendClientMessage(playerid, COLOR_GRAD2, " You must set your frequence first");
				return 1;
			}
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[256];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /wt [Message]");
				return 1;
			}
			if(PlayerInfo[playerid][pWalkie] == 1)
			{
				format(string, sizeof(string), "** Walkie Talkie Chat[%d] %s: %s **",freq, sendername, result);
				SendWalkieTalkieChatMessage(freq,COLOR_YELLOW, string);
        printf("%s", string);
				if(MedicBill[playerid] == 0)
				{
					new time = idx * 100;
					SetTimerEx("ClearChat",time,0,"d",playerid);
				}
				return 1;
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD2, " You must have a WalkieTalkie!");
				return 1;
			}
		}
		return 1;
	}
The function SendWalkieTalkieChatMessage is not implemented.I have it at forward.
Код:
forward SendWalkieTalkieChatMessage(freq, color, string[]);
Was not made by me,a friend send it to me via yahoo,but he doesn't know what to do either.
Thanks and have a nice day/night
Reply


Messages In This Thread
IDK what to do at this point. - by FreeSoul - 14.05.2009, 06:58
Re: IDK what to do at this point. - by Backwardsman97 - 14.05.2009, 07:01
Re: IDK what to do at this point. - by FreeSoul - 14.05.2009, 07:07
Re: IDK what to do at this point. - by Backwardsman97 - 14.05.2009, 07:11
Re: IDK what to do at this point. - by FreeSoul - 14.05.2009, 07:16
Re: IDK what to do at this point. - by Backwardsman97 - 14.05.2009, 07:33

Forum Jump:


Users browsing this thread: 2 Guest(s)