Listing Property's
#2

This is because your property owners name string is empty.

pawn Код:
if (strcmp(cmd, "/myproperties", true) ==0 )
{
    new count = 0;
    for(new i; i < sizeof(PropertyInfo); i++)
    {
        if(strlen(PropertyInfo[i][Name]) != 0 && !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)