Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,260
» Latest member: nyhaha119
» Forum threads: 2,379
» Forum posts: 12,294

Full Statistics

Online Users
There are currently 264 online users.
» 1 Member(s) | 260 Guest(s)
Google, Bing, Applebot, nyhaha119

Latest Threads
[MAP PACK] 5 NEW LS BUILD...
Forum: Videos and Screenshots
Last Post: Apollo4430
5 hours ago
» Replies: 1
» Views: 3,324
Open.mp / SAMP Query
Forum: Releases
Last Post: laex
2025-07-09, 04:07 AM
» Replies: 2
» Views: 70
some text appearing in my...
Forum: Support
Last Post: Sizy
2025-07-08, 07:33 AM
» Replies: 0
» Views: 26
Offensive-Core: TDM
Forum: Gamemodes
Last Post: NikitaFoxze
2025-07-08, 12:13 AM
» Replies: 3
» Views: 3,653
Second Generation Rolepla...
Forum: Advertisements
Last Post: JamesT
2025-07-06, 10:28 AM
» Replies: 0
» Views: 41
Servidor RPG profissões
Forum: Advertisements
Last Post: tcharlesmeurer
2025-07-05, 11:35 PM
» Replies: 0
» Views: 30
EVO Anti-Cheat
Forum: Libraries
Last Post: Eduardo_AC
2025-07-05, 11:05 PM
» Replies: 2
» Views: 91
Developer for Hire – Syst...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-07-04, 08:35 AM
» Replies: 0
» Views: 62
Liberty City map
Forum: Pawn Scripting
Last Post: ziyadprogamer
2025-06-28, 04:55 PM
» Replies: 2
» Views: 2,211
GameText styles in open.m...
Forum: Pawn Scripting
Last Post: Miki
2025-06-28, 01:25 PM
» Replies: 1
» Views: 72

 
  Help! Plugin crashdetect [debug] Run time error 5: "Invalid memory access"
Posted by: PutuSuhartawan - 2021-05-22, 03:51 AM - Forum: Pawn Scripting - Replies (4)

Code:
[debug] Run time error 5: "Invalid memory access"

[debug] AMX backtrace:

[debug] #0 003cb664 in public OnPlayerEditDynamicObject (playerid=3, objectid=16000, response=1, Float:x=-1794.16113, Float:y=-326.82227, Float:z=23.70365, Float:rx=0.00000, Float:ry=0.00000, Float:rz=0.00000) at e:\GAME\Server PutuSuhartawansamp03DL_svr_R1_win32\gamemodes\SuhartawanWorld.pwn:11020





How to fix on this warning sir?


  Help! How to get function closest object ID When click Y can be brought Attached.
Posted by: PutuSuhartawan - 2021-05-20, 04:01 AM - Forum: Pawn Scripting - No Replies

Help! How to get direct object ID?that are close to objects, including TVs or chairs, etc. When we click Y, it can be brought / we can get closer to it automatically


  Problems adapting to mobile SAMP
Posted by: VanHelsing - 2021-05-19, 10:01 PM - Forum: Support - No Replies

Hello, I am trying to adapt a gamemode originally made for computer to samp mobile. I am having a problem related to player movement, where pc players see samp mobile players go "into esc" and teleport when moving. The same thing happens when a mobile player watches a pc player walk.

I couldn't find anything related on the internet.

Plugins used:
- Sscanf
- Streamer

Thanks in advance!

** I apologize for any errors in my English.


  HELP! How to get better recommend than `udb_hash()` and bcrypt system?
Posted by: PutuSuhartawan - 2021-05-19, 08:41 PM - Forum: Pawn Scripting - Replies (1)

People need to secure the password from the communist.

Code:
Example



main(){

bcrypt_hash(0,"OnPassswordHash","text",12);

}



forward OnPassswordHash(playerid);

public OnPassswordHash(playerid){

new dest[60];

bcrypt_get_hash(dest);

bcrypt_verify(playerid,"OnPassswordVerify","text",dest);

}



forward OnPassswordVerify(playerid,bool:success);

public OnPassswordVerify(playerid,bool:success){

//success denotes verifying was successful or not

if(success){

//verfied

} else{

//hash doesn't match with text

}

}


  SA-MP 0.3.7-R4-2 Client
Posted by: Leonardo - 2021-05-18, 10:33 PM - Forum: Discusi?n GTA SA Multijugador - No Replies

Hace unos d?as/semanas acaban de publicar ?sta nueva versi?n del cliente en la web de SA-MP.



Estos son los cambios (seg?n foros rusos, no es oficial):


  • Se arregl? una vulnerabilidad que permit?a a los desarrolladores de servidores de SA-MP ejecutar cualquier c?digo en la PC de los clientes de SA-MP.


La descarga est? disponible en la misma web de SA-MP.


  TSYS Roleplay Demo/Base script
Posted by: _tAxI_ - 2021-05-18, 03:42 PM - Forum: Gamemodes - No Replies

Well, it's been a hot minute since I posted up on the SA-mp forums and I finally made my way over here...



I was asked by some of the guys I used to code for to post up my older game modes (and this one specifically) since the base code is still somewhat useful - it's been years however since it was confirmed to be working and I fully expect it will need some serious work to get going on newer software versions of the server. You have been warned lol.



What is it?




This is largely speaking a demo of the features available in my TSYS RPG System. The mode is playable although will need to be fleshed out and have features added to be really good. However it serves as a good demo of how to integrate and utilize all of the features present in the toolkit.



What does it have?




Banking system, Housing system, business system, user login and save features, admin system and features, basic (very!) anticheat, very advanced vehicle management system (the whole thing evolved from older code which was an RPG vehicle system): Locking and booby trapping etc, call vehicle, park vehicle (reset spawn position etc), on the fly mod saving (if you mod it it will respawn with mods), vehicle admin system, fuel system with gas stations even for planes and helis.



This is given out freely and open so do with it what you want. I will likely never develop this again myself but if it's of use to someone then please be my guest.



Download


  TSYS RPG system toolkit - depreciated
Posted by: _tAxI_ - 2021-05-18, 03:21 PM - Forum: Libraries - No Replies

What is it? -? This is a integrated RPG type system for SA-MP with SQlite backend saving (is that even still a thing???)



What does it do? - Adds RPG type functionallity such as: Vehicle ownership and control (modsaving, booby traps, spawn location setting, admin locking and administrator functions etc), Vehicle fuel system, house ownership system, business ownership system, basic anticheat (will likely need an overhaul though), Banking and money tracking (ATM etc), minimap icon streaming, user login and autosaving etc.



Depreciated??? - I haven't worked on this code in years and likely never will again... I was however asked by a member of the community to re-post the code i designed years ago up here for the very few that still use it lol (Thanks Russian RPG Fam!)



Instructions for use and integration are in the readme file. This system also has in game editing for some of the systems but largely speaking it uses a batch import system which requires a specific formatting to startup the server and get everything ready to go so make sure to READ IT BEFORE STARTING THE SERVER FIRST TIME.



I'm uploading it to my own private server so it shouldn't disappear any time soon. Use what you want, any way you want, and enjoy. This is posted up completely open with no restrictions so go to town guys.



A Demo of the fully integrated system can be downloaded from This Thread.



Download


  3d iterator array
Posted by: K.a.r.o.l - 2021-05-18, 11:35 AM - Forum: Pawn Scripting - Replies (1)

Hi i?have the latest version of ysi 5.05.0301 but i have a problem with 3d iterator array.





Code:
new

Iterator:Iter3[5][8]<10>;

for (new i = 0; i != Iter_InternalSize(Iter3); )

{

Iter_Init(Iter3[i]);

}

Iter_Add(Iter3[3][6], 7);







Errors:





error 017: undefined symbol "Iter_InternalSize"

error 028: invalid subscript (not an array or too many subscripts): "Iter_Init@Iter3"

warning 215: expression has no effect

error 001: expected token: ";", but found "]"

error 029: invalid expression, assumed zero

fatal error 107: too many error messages on one line





i also tried this





Code:
#define SIZE 5

new

Iterator:Iter3[SIZE][8]<10>;

for (new i = 0; i != SIZE; )

{

Iter_Init(Iter3[i]);

}

Iter_Add(Iter3[3][6], 7);





and this





Code:
for (new i = 0; i != Iter_InternalSize(Iter3); )

{

Iter_InitInternal(Iter_InternalArray(Iter3[i]), Iter_InternalSize(Iter3[]), Iter_InternalSize(Iter3[][]) - 1);

}





but its doesnt work



Pls help


  [Solved] Get Difference Between Time Period
Posted by: Radical - 2021-05-18, 12:34 AM - Forum: Pawn Scripting - Replies (3)

I have an function to get difference between time period.

But it has a little problem. If start_hour is the current hour and stop_hour is 24am, it does not accurately calculate the difference Between Time.



Code:
new start_hour, start_minute, start_second, hours, minutes, seconds;



gettime(start_hour, start_minute, start_second);

DifferenceBetweenTimePeriod(start_hour, 24, start_minute, 0, start_second, 0, hours, minutes, seconds);







function:

Code:
DifferenceBetweenTimePeriod(start_hour, stop_hour, start_minute, stop_minute, start_second, stop_second, &hours, &minutes, &seconds) {

? ? while (stop_second > start_second) {

? ? ? ? --start_minute;

? ? ? ? start_second = 60;

? ? }

? ? seconds = start_second - stop_second;

? ? while (stop_minute > start_minute) {

? ? ? ? --start_hour;

? ? ? ? start_minute = 60;

? ? }

? ? minutes = start_minute - stop_minute;

? ? hours = start_hour - stop_hour;

}



Is there a problem with the function?



Solved:



This is resolved if I put?24 in?start_hour.

Code:
DifferenceBetweenTimePeriod(24,?start_hour, start_minute, 0, start_second, 0, hours, minutes, seconds);


  [SOLVED] How Find New ID from enum for SQL with forward loop function ?
Posted by: PutuSuhartawan - 2021-05-18, 12:01 AM - Forum: Pawn Scripting - Replies (4)

SOLUTION:

Need get cahce?GetSVarInt("SlotTrunkUsed")

Code:
GetFreeTrunkID(v, s)

{

????for (new i = 1; i <= 100; i)

????{

????????if (!get_vehicle_trunk[v][s][i])

????????{

????????????return i  GetSVarInt("SlotTrunkUsed");

????????}

????}

????return -1; //Return -1 when there is no free trunk ID

}



return SQL:

Code:
? ? ? ? ? ? ? if(sscanf( inputtext, "iiiii", targetOC_ID, slot, item_type, amount, value)) return SCM(playerid, -1, "USAGE: [targetOC_ID]? [slot] [item_type] [amount] [value]");



? ? ? ? ? ? ? new playa,carid=GetRealIdCar(targetOC_ID);



? ? ? ? ? ? ? SetPVarInt(playerid, "SelectedSlot", slot);



? ? ? ? ? ? ? printf("DEBUG: Checking VID changer from vehicle ID:[%d]", carid);



? ? ? ? ? ? ?



? ? ? ? ? ? ? if(slot >= MAX_TRUNK_SLOTS || slot <= 0) return SCM(playerid, -1, "VEHICLE: Max trunk slot is 3 sir.",1);



? ? ? ? ? ? ? printf("DEBUG: Adding item trunk in slot:[%d]", slot);



? ? ? ? ? ? ? LoadOCTrunks(playerid, carid);



? ? ? ? ? ? ? if(get_vehicle_trunk[carid][slot][TRUNK_SLOT]==slot) return SCM(playerid, -1, "OC_TRUNK: That slot has been used in this vehicle sir. Please remove item from this slot first.",1);



? ? ? ? ? ? ?



? ? ? ? ? ? ? /*



? ? ? ? ? ? ? ? for(new s=1; s<=10; s)



? ? ? ? ? ? ? ? ? ? {



? ? ? ? ? ? ? ? ? ? ? ? if(get_vehicle_trunk[carid][s][TRUNK_SQL_ID]>0)continue;



? ? ? ? ? ? ? ? ? ? ? ? if(get_vehicle_trunk[carid][s][TRUNK_SQL_ID]==slot)



? ? ? ? ? ? ? ? ? ? ? ? {







? ? ? ? ? ? ? ? ? ? ? ? break;



? ? ? ? ? ? ? ? ? ? ? ? }



? ? ? ? ? ? ? ? ? ? }



? ? ? ? ? ? ? */



? ? ? ? ? ? ? if(!IsValidVehicle(carid))return SCM(playerid, -1, "VEHICLE: Thats vehicle has not exist sir.",1);



? ? ? ? ? ? ? printf("DEBUG: Slot filter hassben passed sir");



? ? ? ? ? ? ? new VID = targetOC_ID;



? ? ? ? ? ? ? new result = n_mysql_query(g_Sql, "SELECT * FROM `trunkdata`", true); //ORDER BY oc_id ASC, slot ASC



? ? ? ? ? ? ? new rows = cache_num_rows();



? ? ? ? ? ? ? new number=get_vehicle_trunk[carid][slot][TRUNK_SQL_ID];



? ? ? ? ? ? ? for(new v; v<=MAX_VEHICLES; v)



? ? ? ? ? ? ? {



? ? ? ? ? ? ? ? ? ? for(new slot; slot<=MAX_TRUNK_SLOTS; slot)



? ? ? ? ? ? ? ? ? ? {



? ? ? ? ? ? ? ? ? ?



? ? ? ? ? ? ? ? ? ? ? for(new idx; idx <= rows; idx )



? ? ? ? ? ? ? ? ? ? ? ? ? {



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? cache_get_value_int(idx, "id", get_vehicle_trunk[v][slot][TRUNK_SQL_ID] );



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? /*



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(get_vehicle_trunk[v][slot][TRUNK_SQL_ID]>0)continue;



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? number;



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(number != get_vehicle_trunk[v][slot][TRUNK_SQL_ID])



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? number;



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? printf("[TRUNK]: New id:[%d]", number );



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(number != get_vehicle_trunk[v][slot][TRUNK_SQL_ID])



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? {



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? number;



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(number != get_vehicle_trunk[v][slot][TRUNK_SQL_ID])



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? number;



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(number != get_vehicle_trunk[v][slot][TRUNK_SQL_ID])



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? NewSQL_ID = number;



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? number;



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(number != get_vehicle_trunk[v][slot][TRUNK_SQL_ID])



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? NewSQL_ID = number;



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? number;



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(number != get_vehicle_trunk[v][slot][TRUNK_SQL_ID])



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? printf("[TRUNK]: New final SQL id:[%d]", number );







? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? //if(NewSQL_ID ==0 )



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? break; // find emty slot vehicle ID. with find number primary car player



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? }*/



? ? ? ? ? ? ? ? ? ? ? ? ? }?



? ? ? ? ? ? ? ? ? ? }











? ? ? ? ? ? ? }



? ? ? ? ? ? ?



? ? ? ? ? ? ? cache_delete(result);



? ? ? ? ? ? ? NewSQL_ID = GetFreeTrunkID(carid, slot); printf("[TRUNK ID]: New final SQL id:[%d]", NewSQL_ID );



? ? ? ? ? ? ? format(str, sizeof(str), "{FFBBBB}DEBUG: NewSQL_ID: [%i]", NewSQL_ID); SCM(playerid, 0xFFCCCCFF, str);







? ? ? ? ? ? ? if(NewSQL_ID==0)return SCM(playerid, -1, "{FFBBBB}SQL: {FFFFFF}System new ID SQL was failed sir");



? ? ? ? ? ? ? if(NewSQL_ID>=0)printf("{FFBBBB}DEBUG: New id SQL trunk has been found",VID,GetRPName(playerid));



? ? ? ? ? ? ?



? ? ? ? ? ? ? slot, get_vehicle_trunk[carid][slot][TRUNK_ITEM_TYPE] = item_type, get_vehicle_trunk[carid][slot][TRUNK_ITEM_AMOUNT] = amount, get_vehicle_trunk[carid][slot][TRUNK_ITEM_VALUE] = value;



? ? ? ? ? ? ? //get_vehicle_trunk[carid][slot][TRUNK_SQL_ID]=get_vehicle_trunk[carid][slot][TRUNK_SQL_ID];



? ? ? ? ? ? ? if(get_vehicle_trunk[carid][slot][TRUNK_SQL_ID] == NewSQL_ID)



? ? ? ? ? ? ? {







? ?



? ? ? ? ? ? ? ? ? format(str, sizeof(str), "UPDATE `trunkdata` SET `oc_id`='%d',`slot`='%d',`item_type`='%d',`amount`='%d',`value`='%d',`owner_id`='%d' WHERE `id`='%d'", VID, slot, item_type, amount, value, pInfo[playerid][ID],? NewSQL_ID);



? ? ? ? ? ? ? ? ? n_mysql_query(g_Sql, str);



? ? ? ? ? ? ? ? ? get_vehicle_trunk[carid][slot][TRUNK_SQL_ID] = NewSQL_ID;



? ? ? ? ? ? ? }



? ? ? ? ? ? ? else



? ? ? ? ? ? ? {



? ? ? ? ? ? ? ? ? format(str, sizeof(str), "INSERT INTO `trunkdata` (`id`, `owner_id`, `oc_id`, `slot`, `item_type`, `amount`, `value`) VALUES ('%d', '%d', '%d', '%d', '%d', '%d', '%d')", NewSQL_ID, pInfo[playerid][ID], VID, slot, item_type, amount, value);



? ? ? ? ? ? ? ? ? n_mysql_query(g_Sql, str);



? ? ? ? ? ? ? ? ? SetSVarInt("SlotTrunkUsed", NewSQL_ID);



? ? ? ? ? ? ? }



? ? ? ? ? ? ? ?







? ? ? ? ? ? ? SCM(playerid,-1,"VEHICLE: You have adding item at this trunk vehicle",2);

? ? ? ? ? ? ? SendClientMessage(playerid,-1, str);

PROBLEM: No icrement in new ID maker from enum.

Code:
if(sscanf( inputtext, "iiiii", targetOC_ID, slot, item_type, amount, value)) return SCM(playerid, -1, "USAGE: [targetOC_ID]? [slot] [item_type] [amount] [value]");

? ? ? ? ? ? ? new playa,carid=GetRealIdCar(targetOC_ID);

? ? ? ? ? ? ? SetPVarInt(playerid, "SelectedSlot", slot);

? ? ? ? ? ? ? printf("DEBUG: Checking VID changer from vehicle ID:[%d]", carid);

? ? ? ? ? ? ?

? ? ? ? ? ? ? if(slot >= MAX_TRUNK_SLOTS || slot <= 0) return SCM(playerid, -1, "VEHICLE: Max trunk slot is 3 sir.",1);

? ? ? ? ? ? ? printf("DEBUG: Adding item trunk in slot:[%d]", slot);

? ? ? ? ? ? ? LoadOCTrunks(playerid, carid);

? ? ? ? ? ? ? if(get_vehicle_trunk[carid][slot][TRUNK_SLOT]==slot) return SCM(playerid, -1, "OC_TRUNK: That slot has been used in this vehicle sir. Please remove item from this slot first.",1);

? ? ? ? ? ? ?

? ? ? ? ? ? ? /*

? ? ? ? ? ? ? ? for(new s=1; s<=10; s)

? ? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? ? if(get_vehicle_trunk[carid][s][TRUNK_SQL_ID]>0)continue;

? ? ? ? ? ? ? ? ? ? ? ? if(get_vehicle_trunk[carid][s][TRUNK_SQL_ID]==slot)

? ? ? ? ? ? ? ? ? ? ? ? {



? ? ? ? ? ? ? ? ? ? ? ? break;

? ? ? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? */

? ? ? ? ? ? ? if(!IsValidVehicle(carid))return SCM(playerid, -1, "VEHICLE: Thats vehicle has not exist sir.",1);

? ? ? ? ? ? ? printf("DEBUG: Slot filter hassben passed sir");

? ? ? ? ? ? ? new VID = targetOC_ID;

? ? ? ? ? ? ? new result = n_mysql_query(g_Sql, "SELECT * FROM `trunkdata`", true); //ORDER BY oc_id ASC, slot ASC

? ? ? ? ? ? ? new rows = cache_num_rows();

? ? ? ? ? ? ? new number=get_vehicle_trunk[carid][slot][TRUNK_SQL_ID];

? ? ? ? ? ? ? for(new v; v<=MAX_VEHICLES; v)

? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? for(new slot; slot<=MAX_TRUNK_SLOTS; slot)

? ? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ? ? ? ? ? for(new idx; idx <= rows; idx )

? ? ? ? ? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? cache_get_value_int(idx, "id", get_vehicle_trunk[v][slot][TRUNK_SQL_ID] );

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(get_vehicle_trunk[v][slot][TRUNK_SQL_ID]>0)continue;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? number;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(number != get_vehicle_trunk[v][slot][TRUNK_SQL_ID])

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? number;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? printf("[TRUNK]: New id:[%d]", number );

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(number != get_vehicle_trunk[v][slot][TRUNK_SQL_ID])

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? number;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(number != get_vehicle_trunk[v][slot][TRUNK_SQL_ID])

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? number;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(number != get_vehicle_trunk[v][slot][TRUNK_SQL_ID])

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? NewSQL_ID = number;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? number;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(number != get_vehicle_trunk[v][slot][TRUNK_SQL_ID])

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? NewSQL_ID = number;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? number;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(number != get_vehicle_trunk[v][slot][TRUNK_SQL_ID])

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? printf("[TRUNK]: New final SQL id:[%d]", number );



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? //if(NewSQL_ID ==0 )

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? break; // find emty slot vehicle ID. with find number primary car player

? ? ? ? ? ? ? ? ? ? ? ? ? }? ? }

? ? ? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ? ? ? ? }





? ? ? ? ? ? ? }





Code:
GetFreeTrunkID(v, s) {

? ? new i=1;

? ? for(i; i <= 100; i)

? ? {

? ? ? ? ? ? //i;

? ? ? ? ? ? if(get_vehicle_trunk[v][s][i] == 0)

? ? ? ? ?

? ? ? ? ? ? ? ? if(i != 0)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? i;

? ? ? ? ? ? ? ? ? if(get_vehicle_trunk[v][s][i] == 0)

? ? ? ? ? ? ? ? ? i;

? ? ? ? ? ? ? ? ? return i᧫剕꫈("SlotTrunkUsed");

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ?

? ? ? ? ?

? ? ? ?



? ? }

? ?



? ? return i᧫剕꫈("SlotTrunkUsed");

? ? printf("[TRUNK_ID]: Debug new ID SQL:[%d]", v);

}