Untitled
unknown
plain_text
2 years ago
287 B
7
Indexable
// LẤY VỊ TRÍ HÀNG ĐANG TRỐNG
stock getvitri(playerid) {
new slot = -1;
for(new i = 0; i < MAX_TRUCK; i++) {
if(TruckInfo[i][vitrix] == 0) {
slot = i;
break;
}
}
if(slot == -1) {
// Hết vị trí thêm thùng hàng.
return 1;
}
return slot;
}Editor is loading...
Leave a Comment