IBP /v park problem
#1

I have a problem with IBP:Roleplay (the gamemode who LS-RP use). The command /v park doesn't work. I buy a parking place (/v buypark) and then when I type /v park , the vehicle is not despawning, is not sending clientmessage nothing.

There is the PAWN-CODE :

Код HTML:
else if(strcmp(x_vehicle, "park", true) == 0)
			{
				if(!IsPlayerInAnyVehicle(playerid))
				{
				    SendClientMessage(playerid, COLOR_LIGHTRED, "You're not in a vehicle !");
				    return 1;
				}
				new vehi = GetPlayerVehicleID(playerid);
				if(vehi <= IBPCARS)
				{
					return 1;
				}
				new Float:vehicleHealth;
				GetVehicleHealth(vehi, vehicleHealth);
			   	if(vehicleHealth < 350)
			   	{
			    	SendClientMessage(playerid, COLOR_LIGHTRED, "Your vehicle is almost destroyed,you can't park it.");
			    	return 1;
				}
				new plname[MAX_PLAYER_NAME];
				GetPlayerName(playerid, plname, sizeof(plname));
                if(vehi == PlayerInfo[playerid][pCarKey] || (strcmp(plname, VehicleInfo[vehi][vOwner], true) == 0))
				{
				    if(PlayerToPoint(5.0, playerid, VehicleInfo[vehi][vX], VehicleInfo[vehi][vY], VehicleInfo[vehi][vZ]))
					{
					    if(VehicleInfo[vehi][vNeon] != 0)
					    {
					        DestroyObject(VehicleInfo[vehi][vNeon2]);
					        DestroyObject(VehicleInfo[vehi][vNeon]);
					        VehicleInfo[vehi][vNeon2] = 0;
					        VehicleInfo[vehi][vNeon] = 0;
					    }
						SaveVehicles(playerid, vehi);
						SendClientMessage(playerid, COLOR_GREEN, "Masina ta a fost parcata(despawnata).");
						PlayerInfo[playerid][pCarKey] = 0;
						VehicleInfo[vehi][vOwned] = 0;
						DestroyVehicle(vehi);
						TogglePlayerControllable(playerid, 1);
					}
					else
					{
					    SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa fii la locul tau de parcare!");
						SendClientMessage(playerid, COLOR_WHITE, "Ti-am marcat pe harta locul de parcare.");
						SetPlayerCheckpoint(playerid, VehicleInfo[PlayerInfo[playerid][pCarKey]][vX], VehicleInfo[PlayerInfo[playerid][pCarKey]][vY], VehicleInfo[PlayerInfo[playerid][pCarKey]][vZ], 5.0);
						VCP[playerid] = 1;
						ActiveCP[playerid] = 1;
						return 1;
					}
				}
				else
				{
				    SendClientMessage(playerid, COLOR_LIGHTRED, "You don't own a vehicle !");
				    return 1;
				}
	        }
Reply
#2

any error message in console?
Reply
#3

No. When I buy the car , there writes

Quote:

[08:51:29] Aidan_Chase bought a Tampa.
[08:51:29] MySQL Error (0): Could not execute query. Unknown column 'Owner' in 'field list'.
[08:51:29] MySQL Error (0): Could not execute query. Unknown column 'Username' in 'where clause'.
[08:51:29] SQL: SELECT `VehicleID` FROM `OwnerVehicles` WHERE `Username` = 'Aidan_Chase'
[08:51:29] MySQL Error (0): Function: 'mysql_store_result' called when no prior query executed.. Unknown column 'Username' in 'where clause'.
[08:51:29] MySQL Error (0): Function: 'mysql_fetch_int' called when no result stored. Unknown column 'Username' in 'where clause'.

Could by these ? In my command , at /v park doesn't appear MySql connections , or anything else. If you have skype , PM me with it , if you could help me.
Reply
#4

Up , please help me, anyone :O3
Reply
#5

Quote:
Originally Posted by Sn00Py
Посмотреть сообщение
No. When I buy the car , there writes



Could by these ? In my command , at /v park doesn't appear MySql connections , or anything else. If you have skype , PM me with it , if you could help me.

2 topics? Wow. Anyway it seems clear you simply haven't set up the database. Do that or give up all use of computers.
Reply
#6

I setup the database , are u mad ? I said , in that command are no MySQL connections , or I don't know. IBPCARS , is defined by who ? IBPCARS where is located ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)