21.03.2016, 10:10
I have no clue to why this actually would work, since strcmp shouldn't accept the values if one returns null, but try:
Define isnull() if you haven't.
pawn Код:
for(new i = 0; i < sizeof(personalVehicleData); i++)
{
if(!strcmp(personalVehicleData[i][owner], playersName[playerid], false) && !isnull(personalVehicleData[i][owner]))
{
if(personalVehicleData[i][spawned] == 0)
{
printf("%d: %s, %d", i, personalVehicleData[i][owner], personalVehicleData[i][modelID]);
vNumbers ++;
format(string, sizeof(string), "%s\n%s", string, GetVehicleNameFromModel(personalVehicleData[i][modelID]));
}
}
}
pawn Код:
#if !defined isnull
#define isnull(%1) ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif