/setage
#7

Is correct?:

Код:
	if(strcmp(cmd, "/mддravanus", true) == 0)
	{
		age = strval(tmp);
		if(age < 1 || age > 99)
		{
		  SendClientMessage(playerid, COLOR_GRAD1, "Vanus peab olema 1-99!");
		  return 1;
		}
	  if(IsPlayerConnected(playerid))
	  {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "KASUTUS: /mддravanus [vanus]");
				return 1;
			}
			new age;
			tmp = strtok(cmdtext, idx);
			age = strval(tmp);
			if(IsPlayerConnected(playa))
			{
				PlayerInfo[playerid][pAge] = age;
				format(string, 256, "SERVER: Sa oled nььd %d vanus!", age);
				SendClientMessage(COLOR_YELLOW,string,1);
				}
			}
		}
		return 1;
	}
Srry dp
Reply


Messages In This Thread
/setage - by Typhome - 17.08.2009, 14:33
Re: /setage - by brett7 - 17.08.2009, 14:38
Re: /setage - by Typhome - 17.08.2009, 14:39
Re: /setage - by Typhome - 17.08.2009, 15:17
Re: /setage - by (.Aztec); - 17.08.2009, 15:28
Re: /setage - by Typhome - 17.08.2009, 15:31
Re: /setage - by Typhome - 17.08.2009, 16:23
Re: /setage - by (.Aztec); - 17.08.2009, 16:25
Re: /setage - by Typhome - 17.08.2009, 16:27
Re: /setage - by Karlip - 17.08.2009, 16:30

Forum Jump:


Users browsing this thread: 2 Guest(s)