15.07.2017, 19:30
Hi, I want to make a function that checks if the player is in an 24/7 or not?, I tried that but it didn't work :
I want to create something like that above to make it more easier than using that in every command
Is there any way to do that?
Код:
stock IsIn247(playerid) { for(new x; x<sizeof(bInfo); x++) { if(bInfo[x][bType] == 1) { if(IsPlayerInRangeOfPoint(playerid,15,bInfo[x][bInteriorX],bInfo[x][bInteriorY],bInfo[x][bInteriorZ])) { return 1; } } } return 0; }
Код:
for(new x; x<sizeof(XXX); x++)...