Quote:
Originally Posted by CSMajor
pawn Код:
if(!strcmp(cmdtext,"/enter",true,6)) return SendClientMessage(playerid,0xFFF0000FF,"USAGE: /enter [Interior ID]"); { if(IsPlayerInVehicle(playerid)) { LinkVehicleToInterior(GetPlayerVehicleID(playerid),cmdtext[7]); } else { SendClientMessage(playerid,0xFFF0000FF,"You Are Not In A Vehicle!"); } return 1; }
please post the errors you get as i have not tested it
|
cmdtext = /enter
cmd = /enter (id)
:P so use
if(!strcmp(cmd(deleted text),"/enter",true,6)) return SendClientMessage(playerid,0xFFF0000FF,"USAGE: /enter [Interior ID]");