[HELP] unknown server command (/lock)
#1

NOTE: These replys are from a previous problem until the start of page 2.

New UPDATED Problem:
When i lock 2 cars . Lets say:
CAR-A and CAR-B
then unlock Car-A and try Unlock Car-B, Car-B is unable to be unlocked and thus cannot be entered or driven and brings up UNKNOWN SERVER COMMAND on cmd /lock.
Help!
Reply
#2

please post a pastebin link, thanks.
Reply
#3

Why? All you need is in the links. .
Reply
#4

Cuz i cant unpack .rar or .zip or anything like that right now
Reply
#5

Quote:
Originally Posted by Matthew_Murdoch
Why? All you need is in the links. .
Because it's easier for us to help you.
Reply
#6

Like this? below? that easier?
Reply
#7

Quote:
Originally Posted by Matthew_Murdoch
if(strcmp(cmd, "/lock", true) == 0)
{
new carid=GetPlayerVehicleID(playerid);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(VehicleLocked[carid] == 0)
{
if(PlayerInfo[playerid][pSex] == 1)
{
PlayerActionMessage(playerid,15.0,"has just locked his vehicle");
}
else
{
PlayerActionMessage(playerid,15.0,"has just locked her vehicle");
}
SendClientMessage(playerid,COLOR_WHITE,"[Info:] Vehicle Locked");
VehicleLocked[carid] = 1;
VehicleLockedPlayer[playerid] = carid;
}
}
else if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
new Float,Float:y,Float:z;
if(VehicleLockedPlayer[playerid] != 999)
{
GetVehiclePos(VehicleLockedPlayer[playerid], x, y, z);
}
if(VehicleLocked[VehicleLockedPlayer[playerid]])
{
if(PlayerToPoint(5.0,playerid,x,y,z))
{
if(PlayerInfo[playerid][pSex] == 1)
{
PlayerActionMessage(playerid,15.0,"has just unlocked his vehicle");
}
else
{
PlayerActionMessage(playerid,15.0,"has just unlocked her vehicle");
}
SendClientMessage(playerid,COLOR_WHITE,"[Info:] Vehicle Unlocked");
VehicleLocked[VehicleLockedPlayer[playerid]] = 0;
VehicleLockedPlayer[playerid] = 999;
}
else
{
SendClientMessage(playerid,COLOR_GREY,"[Error:] You are not at the vehicle");
}
}
}
return 1;
}
Reply
#8

That's because you don't have this in your code

https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer
Reply
#9

Quote:
Originally Posted by dice7
That's because you don't have this in your code

https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer
This has been removed in 0.3. Just to remind
Reply
#10

Quote:
Originally Posted by Enemy_Plus[SA:MP
]
Quote:
Originally Posted by dice7
That's because you don't have this in your code

https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer
This has been removed in 0.3. Just to remind
And where did you get that ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)