Listing Property's
#1

I'm trying to make a /myproperties command which lists all the property's I own. I only own one so far, when I type /myproperties, it lists 3 and it just saids: "Property Name: " Code is below:
Код:
if (strcmp(cmd, "/myproperties", true) ==0 )
{
	new count = 0;
	for(new i; i < sizeof(PropertyInfo); i++)
  	{
	  if(!strcmp(PropertyInfo[i][Name], GetPlayerNameEx(playerid), true))
      {
	     count++;
	     format(string, 256, "Property Name: %s", PropertyInfo[i][Name]);
		 SendClientMessage(playerid, COLOR_RED, string);
      }
	}
	return 1;
}
Reply


Messages In This Thread
Listing Property's - by Eazy_Efolife - 10.02.2010, 16:58
Re: Listing Property's - by MadeMan - 10.02.2010, 17:10
Re: Listing Property's - by Eazy_Efolife - 10.02.2010, 17:34

Forum Jump:


Users browsing this thread: 1 Guest(s)