Posts: 1,018
Threads: 320
Joined: Jul 2010
Hello everyone I have huge problem. I have a great car ownership but the problem is when player buy a car oke in the folder cars is create car_0 and inside is a name of a car owner position's and that kind of staff but he problem is when second player buy a car then it should be create car_1 but instead it's replaced with car_0 and change everything for last player who buy a car if you know what I mean. Please help. Thanks
Posts: 101
Threads: 11
Joined: Jul 2013
Reputation:
0
Can you give the ownership system?
Posts: 1,018
Threads: 320
Joined: Jul 2010
14.09.2013, 11:06
(
Последний раз редактировалось Luca12; 14.09.2013 в 11:52.
)
what you need ?
edit: I use this code for creating file boat_0 boat_1 that work's, and the same code I use for cars but it doesn't work I don't know why?
pawn Код:
stock GetNextID()
{
new c = 0,file4[512];
for(new i = 0; i < MAX_AUTA; i++)//Promeni NEKI_BROJ_MAX_ZA_COS to je broj kola koliko je maksimalno posto si tako radio
{
format(file4, sizeof(file4), FPATH,i);
if(fexist(file4)) c++;
}
return c;
}