CREATE TABLE IF NOT EXISTS `players` ( `reg_id` smallint(7) NOT NULL auto_increment, `name` varchar(24) NOT NULL, `ip` varchar(20) NOT NULL, `pass` varchar(20) NOT NULL, `reg_date` varchar(24) NOT NULL, `laston` varchar(24) NOT NULL, `money` int(20) NOT NULL default \'0\', PRIMARY KEY (`reg_id`), KEY `name` (`name`)) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;CREATE TABLE IF NOT EXISTS `connections` ( `id` int(11) NOT NULL auto_increment, `name` varchar(21) NOT NULL, `ip` varchar(16) NOT NULL, `serial` varchar(128) NOT NULL, `time` varchar(24) NOT NULL, PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=latin1;CREATE TABLE IF NOT EXISTS `queryerrors` ( `id` mediumint(7) NOT NULL auto_increment, `errorid` int(11) NOT NULL, `error` text NOT NULL, `resultid` mediumint(7) NOT NULL, `extraid` mediumint(7) NOT NULL, `callback` varchar(512) NOT NULL, `sql_query` varchar(512) NOT NULL, `connectionHandle` mediumint(7) NOT NULL, `time` varchar(24) NOT NULL, PRIMARY KEY (`id`), KEY `errorid` (`errorid`)) ENGINE=MyISAM DEFAULT CHARSET=latin1;
if(strcmp(cmd, \"/armyinf\", true) == 0) { new Object = CreateObject(362,1.1,1.1,1.1,1.1,1.1,1.1); new Object2 = CreateObject(362,1.1,1.1,1.1,1.1,1.1,1.1); new Object3 = CreateObject(3884,1.1,1.1,1.1,1.1,1.1,1.1);AttachObjectToVehicle(Object,411,1.310000,-0.450000,0.019998,1.000000,25.000000,90.000000); AttachObjectToVehicle(Object2,411,-1.290000,-0.450000,0.019998,1.000000,25.000000,90.000000); AttachObjectToVehicle(Object3,411,0.070024,-0.040000,0.139998,-4.000000,6.000000,2.000000); return 1;}
Kikéne az adatbázist választani................Nem ModelID, hanem VehicleID.411 helyett ezt írd: GetPlayerVehicleID(playerid)
$adatbazis = \"xxxserverfun2\";mysql_select_db( $adatbazis ) or die ( \"Nem lehetåmegnyitni a következõ adatbázist: $adatbazis\" );CREATE TABLE IF NOT EXISTS `players` ( `reg_id` smallint(7) NOT NULL auto_increment, `name` varchar(24) NOT NULL, `ip` varchar(20) NOT NULL, `pass` varchar(20) NOT NULL, `reg_date` varchar(24) NOT NULL, `laston` varchar(24) NOT NULL, `money` int(20) NOT NULL default \'0\', PRIMARY KEY (`reg_id`), KEY `name` (`name`)) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;CREATE TABLE IF NOT EXISTS `connections` ( `id` int(11) NOT NULL auto_increment, `name` varchar(21) NOT NULL, `ip` varchar(16) NOT NULL, `serial` varchar(128) NOT NULL, `time` varchar(24) NOT NULL, PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=latin1;CREATE TABLE IF NOT EXISTS `queryerrors` ( `id` mediumint(7) NOT NULL auto_increment, `errorid` int(11) NOT NULL, `error` text NOT NULL, `resultid` mediumint(7) NOT NULL, `extraid` mediumint(7) NOT NULL, `callback` varchar(512) NOT NULL, `sql_query` varchar(512) NOT NULL, `connectionHandle` mediumint(7) NOT NULL, `time` varchar(24) NOT NULL, PRIMARY KEY (`id`), KEY `errorid` (`errorid`)) ENGINE=MyISAM DEFAULT CHARSET=latin1;
De phpMyAdmin-ba válatd ki, én így gondolom xD