05.05.2017, 08:17
You can use GPCI for that but it's not reliable.
#define fac_t:%0 FacType_%0
new fac_t:Gouv;
warning 236: unknown parameter in substitution (incorrect #define pattern) error 001: expected token: ";", but found "%"
Why this is not working?
PHP Code:
Code:
warning 236: unknown parameter in substitution (incorrect #define pattern) error 001: expected token: ";", but found "%" |
MyTag:
//declarable
new MyTag:var;
MyPrefix::
//defineable
#define MyPrefix::%1 %1_MyPrefix
PHP Code:
PHP Code:
|
Ooh. Yes, okei. I'm pretty stupid lol
Mhm, but How does foreach work? Forach has created his own tag? This tag add a new var. |
#define MyTag:%1<%2> %1@MyTag[%2]
new MyTag:var<100>;
Any technical reason why there's no GetVehicleInterior function? Ye ye, I know I can just save the interiorid to an array of vehicles whenever I set a vehicle's interior, but that's not my question. Was just curious if there was an issue in SA-MP that made the function never to be existing?
|
CREATE TABLE `---`.`---` ( `---` INT NOT NULL AUTO_INCREMENT , `rank_1` VARCHAR(35) NOT NULL , `rank_2` VARCHAR(35) NOT NULL , `rank_3` VARCHAR(35) NOT NULL , `rank_4` VARCHAR(35) NOT NULL , `rank_5` VARCHAR(35) NOT NULL , `rank_6` VARCHAR(35) NOT NULL , `rank_7` VARCHAR(35) NOT NULL , `rank_8` VARCHAR(35) NOT NULL , PRIMARY KEY (`faction_id`)) ENGINE = InnoDB;
PUBLIC:OnRanksLoading()
{
new temporaire,
nbRank = cache_num_rows();
for(new i; i != nbRank; i++)
{
cache_get_value_int(i, "SQLID", temporaire); // SQLID
cache_get_value(i, "rank_0", f_RankName[temporaire][0], MAX_FAC_RANK_NAME);
cache_get_value(i, "rank_1", f_RankName[temporaire][1], MAX_FAC_RANK_NAME);
cache_get_value(i, "rank_2", f_RankName[temporaire][2], MAX_FAC_RANK_NAME);
cache_get_value(i, "rank_3", f_RankName[temporaire][3], MAX_FAC_RANK_NAME);
cache_get_value(i, "rank_4", f_RankName[temporaire][4], MAX_FAC_RANK_NAME);
cache_get_value(i, "rank_5", f_RankName[temporaire][5], MAX_FAC_RANK_NAME);
cache_get_value(i, "rank_6", f_RankName[temporaire][6], MAX_FAC_RANK_NAME);
cache_get_value(i, "rank_7", f_RankName[temporaire][7], MAX_FAC_RANK_NAME);
cache_get_value(i, "rank_8", f_RankName[temporaire][8], MAX_FAC_RANK_NAME);
}
}