Compil Problem
#3

Code:
	if(strcmp(cmd,"/unban",true)==0)
	{
		if (PlayerInfo[playerid][pAdmin] < 4)
		{
			SendClientMessage(playerid, COLOR_GREY, "You are not authorized to unban");
			return 1;
		}
		new unbanname[64];
		unbanname = strtok(cmdtext,idx);  <==== /*here*/
		if(!strlen(unbanname))
		{
			SendClientMessage(playerid,COLOR_GRAD1,"USAGE: /unban [fullName]");
			return 1;
		}
		//new sql[256];
		format(sql, sizeof(sql), "SELECT id FROM players WHERE Name='%s'", unbanname);
		printf("%s", sql);
		samp_mysql_query(sql);
		//if (DEBUG) SQLLog(sql);
		samp_mysql_store_result();
Code:
	if(strcmp(cmd, "/famput", true) == 0)
	{
	new fam = PlayerInfo[playerid][pFMember];
	GetPlayerName(playerid, playername, sizeof(playername));
	if (fam >= MAX_FAMILY)
	  {
	  SendClientMessage(playerid, COLOR_GREY, "You are not in the family!");
	  return 1;
	  }
	if (!PlayerToPoint(2.0, playerid, FamilyInfo[fam][FamilyExt][0], FamilyInfo[fam][FamilyExt][1], FamilyInfo[fam][FamilyExt][2]))
	  {
	  SendClientMessage(playerid, COLOR_GREY, "You are not at your family turf");
	  return 1;
	  }
	new subcmd[MAX_PLAYER_NAME];
	subcmd = strtok(cmdtext,idx); <==== /*here*/
	if (!strlen(subcmd))
	  {
	  SendClientMessage(playerid, COLOR_GREY, "USAGE: /famput [money|mats|drugs] [amount]");
	  return 1;
	  }
	tmp = strtok(cmdtext,idx);
eroors line containing subcmd = strtok(cmdtext,idx);

sry for my bad english
Reply


Messages In This Thread
Compil Problem - by rootman - 23.09.2009, 20:46
Re: Compil Problem - by Correlli - 23.09.2009, 20:48
Re: Compil Problem - by rootman - 23.09.2009, 20:55
Re: Compil Problem - by Correlli - 23.09.2009, 20:57
Re: Compil Problem - by rootman - 23.09.2009, 21:08
Re: Compil Problem - by Donny_k - 23.09.2009, 22:35
Re: Compil Problem - by rootman - 23.09.2009, 23:33
Re: Compil Problem - by Donny_k - 24.09.2009, 00:05
Re: Compil Problem - by rootman - 24.09.2009, 02:29
Re: Compil Problem - by Jose 510 - 24.09.2009, 04:45

Forum Jump:


Users browsing this thread: 2 Guest(s)