08.04.2009, 20:45
Okey! Hello! I'm making a car ownership system.. And I'm geting som errors now that i cant solv! I have tryed many hours now!! Can't get the errors away!!!
Here is the script:
The error is from the way i try to get playername!
Really need help with this one.. What ever i do, i get error!
Here is the script:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { new carid[256]; format(carid, 256, "%d", vehicleid); new car_name = dini_Int(carid, "name"); if(dini_Exists(carid)) { new plname[MAX_PLAYER_NAME]; GetPlayerName(playerid, plname, sizeof(plname)); if(strcmp(plname, car_name, true) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "Welcome back! Type /stats for status off the car."); { else { } } else { SendClientMessage(playerid, COLOR_YELLOW, "This car is for sale! Type /buycar for buy it."); } return 1; }
Really need help with this one.. What ever i do, i get error!