10.02.2010, 16:58
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;
}

