03.07.2016, 10:08
pawn Код:
CallRemoteFunction("SendHouseCrimeReport","ifffs", playerid, getPOS, GetPlayerArea(playerid));
pawn Код:
#if !defined isnull
#define isnull(%1) ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
pawn Код:
#if !defined strcpy
#define strcpy(%0,%1) strcat((%0[0] = EOS, %0), %1)
#endif
pawn Код:
new name_of_area[32]; // change to a size that fits your purposes
strcpy(name_of_area, GetPlayerArea(playerid));
CallRemoteFunction("SendHouseCrimeReport","ifffs", playerid, x, y, z, isnull(name_of_area) ? ("\1") : name_of_area);