Client crush on Connect (Compiles without any error)
#3

Didin't solved the problem, i guess it somewhere else.
EDIT: Found the problem: createVehicle had playercar[1] instead of playercar[cars], everything is fine on creating cars, but now i have different thing, the car doesn't lock:
Код:
		for (new cars=0;cars<5; cars++) {
			if (!strcmp(playercar[cars][car_owner], playerinfo[playerid][nickname])) {
				SetVehicleParamsForPlayer(playercar[cars][car_id],playerid,0,1);
			} else {
				SetVehicleParamsForPlayer(playercar[cars][car_id],playerid,1,0);
			}
		}
Where is the problem? It should show an arrow above the car if the playername matches, but if it doesn't than it should lock that car for that player, but it doesn't do either one or other.
Tryied to add print(playercar[cars][car_owner]); in for loop, and it returned : <null> arrays, even know there should be a strings with names.
EDIT:
Код:
		print(usercar[0]);
		playercar[cars][car_owner] = strval(usercar[0]);
		print(playercar[cars][car_owner]);
Returns MyName and than after assigning <null> why?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)