| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 8,076
» Latest member: one88aorg
» Forum threads: 2,432
» Forum posts: 12,450
Full Statistics
|
| Online Users |
There are currently 211 online users. » 0 Member(s) | 208 Guest(s) Bing, Applebot, Facebook
|
| Latest Threads |
🎮 Free SA-MP Server Hosti...
Forum: Chat
Last Post: Centnodes
4 hours ago
» Replies: 15
» Views: 3,405
|
Classic Party Server [ENG...
Forum: Advertisements
Last Post: GPCServ
2026-04-11, 10:12 PM
» Replies: 0
» Views: 34
|
Valrise RPG (PC/Android)
Forum: Advertisements
Last Post: Habshi
2026-04-08, 10:46 AM
» Replies: 0
» Views: 69
|
UZS Zombie Survival
Forum: Advertisements
Last Post: phnx
2026-04-04, 05:32 PM
» Replies: 0
» Views: 72
|
FCNPC for open.mp
Forum: Pawn Scripting
Last Post: mentaletion
2026-04-01, 12:28 PM
» Replies: 7
» Views: 7,449
|
Samp development
Forum: Chat
Last Post: pmemorex2016
2026-03-31, 09:57 AM
» Replies: 0
» Views: 134
|
Pawno compiler (pawncc.ex...
Forum: Support
Last Post: PutuSuhartawan
2026-03-20, 11:12 PM
» Replies: 0
» Views: 180
|
[0.3.7 & 0.3.DL] Los Sant...
Forum: Advertisements
Last Post: renza1st
2026-03-16, 05:58 AM
» Replies: 0
» Views: 125
|
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2026-03-13, 11:17 AM
» Replies: 0
» Views: 118
|
Atlanta DeathMatch/Team D...
Forum: Advertisements
Last Post: NixaSha
2026-03-10, 04:57 AM
» Replies: 1
» Views: 165
|
|
|
| HELP! How to Aligned Format String to Center or Justifier Aligner ? |
|
Posted by: PutuSuhartawan - 2021-05-26, 05:37 PM - Forum: Pawn Scripting
- No Replies
|
 |
Code: new trunkdataslot1items[1000];
format(trunkdataslot1items, sizeof(trunkdataslot1items), ""COL_RED"SQL ID\t"COL_BLUE"Items\t"COL_GREEN"Amount\t"COL_GREEN"Owner\n");
? ? ? ? ? ? // max item id is 6. but in array show 7 because was counted from zero.
for(new s; s<MAX_TRUNK_SLOTS; s)
? ? ? ? ? ? {
? ? ? ? ? ? format(trunkdataslot1items, sizeof(trunkdataslot1items),
? ? ? ? ? ? " %s "COL_RED"%i \t"COL_BLUE" %s\t "COL_RED"%i %s\t"COL_GREEN" %i\n",
? ? ? ? ? ? trunkdataslot1items, get_vehicle_trunk[closestcar][s][TRUNK_SQL_ID], GetItemInfo( get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE], I_NAME), get_vehicle_trunk[closestcar][s][TRUNK_ITEM_AMOUNT], GetItemInfo( get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE], I_NAME_COUNT), get_vehicle_trunk[closestcar][s][TRUNK_OWNER_ID] );
? ? ? ? ? ? printf("[TRUNK]: Slot:[%i], SQL ID:[%d], Item Type:[%d], Amount:[%d], ", s, get_vehicle_trunk[closestcar][s][TRUNK_SQL_ID], get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE],? get_vehicle_trunk[closestcar][s][TRUNK_ITEM_AMOUNT]);
? ? ? ? ? ? }
ToggleBoot(pInfo[playerid][LastVehicleID], VEHICLE_PARAMS_ON);
? ? ? ? ? ShowPlayerDialog(playerid, DIALOG_OPEN_VEHICLE_TRUNK, DIALOG_STYLE_TABLIST_HEADERS, DialogTitle , trunkdataslot1items, "Take it", "Close");
? ? ? ? ? ?
|
|
|
|
| OnPlayerSoundIDChange |
|
Posted by: DTV - 2021-05-25, 10:29 PM - Forum: Questions and Suggestions
- No Replies
|
 |
Not sure how far fetched this is but have a callback that is able to detect any given sound ID that can be used in PlayerPlaySound, so if a player has a certain sound play near them like an explosion, the callback would be able to detect it.
|
|
|
|
| [SOLVED] How use DIALOG_STYLE_TABLIST_HEADERS with loops for function wrong format |
|
Posted by: PutuSuhartawan - 2021-05-25, 04:09 AM - Forum: Pawn Scripting
- No Replies
|
 |
SOLUTION:?
Put The format before for loops function
Code: new trunkdataslot1items[1000];
format(trunkdataslot1items, sizeof(trunkdataslot1items), ""COL_RED"SQL ID\t"COL_BLUE"Items\t"COL_GREEN"Amount\n");
? ? ? ? ? ? for(new s; s < MAX_TRUNK_SLOTS; s )
? ? ? ? ? ? {
? ? ? ? ? ? ? ?
? ? ? ? ? ? format(trunkdataslot1items, sizeof(trunkdataslot1items),
? ? ? ? ? ? " %s %i \t"COL_GREEN" %s \t "COL_RED"%i %s \n",
? ? ? ? ? ? trunkdataslot1items, get_vehicle_trunk[closestcar][s][TRUNK_SQL_ID], GetItemInfo( get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE], I_NAME), get_vehicle_trunk[closestcar][s][TRUNK_ITEM_AMOUNT], GetItemInfo( get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE], I_NAME_COUNT)? );
? ? ? ? ? ? printf("[TRUNK]: Slot:[%i], SQL ID:[%d], Item Type:[%d], Amount:[%d], ", s, get_vehicle_trunk[closestcar][s][TRUNK_SQL_ID], get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE],? get_vehicle_trunk[closestcar][s][TRUNK_ITEM_AMOUNT]);
? ? ? ? ? ? }
? ? ? ? ? ShowPlayerDialog(playerid, DIALOG_OPEN_VEHICLE_TRUNK, DIALOG_STYLE_TABLIST_HEADERS, DialogTitle , trunkdataslot1items, "Take it", "Close");
? ? ? ? ? ?
Problem:
How put?"COL_RED"SQL ID\t"COL_BLUE"Items\t"COL_GREEN"Amount\n in the right place?
Code: ? ? ? ? ? ? for(new s; s < MAX_TRUNK_SLOTS; s )
? ? ? ? ? ? {
? ? ? ? ? ? ? ?
? ? ? ? ? ? format(trunkdataslot1items, sizeof(trunkdataslot1items),
? ? ? ? ? ? " %s %i \t"COL_GREEN" %s \t "COL_RED"%i %s \n",
? ? ? ? ? ? trunkdataslot1items, get_vehicle_trunk[closestcar][s][TRUNK_SQL_ID], GetItemInfo( get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE], I_NAME), get_vehicle_trunk[closestcar][s][TRUNK_ITEM_AMOUNT], GetItemInfo( get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE], I_NAME_COUNT)? );
? ? ? ? ? ? printf("[TRUNK]: Slot:[%i], SQL ID:[%d], Item Type:[%d], Amount:[%d], ", s, get_vehicle_trunk[closestcar][s][TRUNK_SQL_ID], get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE],? get_vehicle_trunk[closestcar][s][TRUNK_ITEM_AMOUNT]);
? ? ? ? ? ? }
? ? ? ? ? ShowPlayerDialog(playerid, DIALOG_OPEN_VEHICLE_TRUNK, DIALOG_STYLE_TABLIST_HEADERS, DialogTitle , trunkdataslot1items, "Take it", "Close");
? ? ? ? ? ?
|
|
|
|
Streamer |
|
Posted by: SeeK Space - 2021-05-25, 02:09 AM - Forum: Pawn Scripting
- Replies (5)
|
 |
Hello. Good morning, good afternoon, good night. Well, the items of the streamer?on my server are disappearing in a very random way, all the functions? DestroyDynamic?are correct, the items created when the server is started do not disappear, just the recently created ones at a certain time. I have also looked at all the timers and nothing works with what could make these items disappear.?I also realized that this happens when there is a considerable average number of players online on the server.
|
|
|
|
| HELP! How fix crashdetect Run time error 13: "(reserved)" |
|
Posted by: PutuSuhartawan - 2021-05-25, 01:35 AM - Forum: Pawn Scripting
- Replies (1)
|
 |
Code: HELP! How fix crashdetect Run time error 13: "(reserved)"
Run time error 13: "(reserved)"
[debug] Run time error 13: "(reserved)"
[debug] AMX backtrace:
[debug] #0 00000008 in public cmd_addattachedobject () at :0
[debug]?[url=https://github.com/Zeex/samp-plugin-crashdetect/issues/1]#1[/url]?native CallLocalFunction () in samp-server.exe
[debug]?[url=https://github.com/Zeex/samp-plugin-crashdetect/issues/2]#2[/url]?00294290 in public FIXES_OnPlayerCommandText (3, 43497488) at E:\GAME\Server PutuSuhartawansamp03DL_svr_R1_win32\pawno\include\zcmd.inc:112
[debug]?[url=https://github.com/Zeex/samp-plugin-crashdetect/issues/3]#3[/url]?000076ec in public OnPlayerCommandText (playerid=3, cmdtext[]=@0297b810 "/addattachedobject 967") at E:\GAME\Server PutuSuhartawansamp03DL_svr_R1_win32\pawno\include\fixes.inc:7900
[debug] Run time error 13: "(reserved)"
[debug] AMX backtrace:
[debug] #0 00000008 in public cmd_addattachedobject () at :0
[debug]?[url=https://github.com/Zeex/samp-plugin-crashdetect/issues/1]#1[/url]?native CallLocalFunction () in samp-server.exe
[debug]?[url=https://github.com/Zeex/samp-plugin-crashdetect/issues/2]#2[/url]?00294290 in public FIXES_OnPlayerCommandText (3, 43497488) at E:\GAME\Server PutuSuhartawansamp03DL_svr_R1_win32\pawno\include\zcmd.inc:112
[debug]?[url=https://github.com/Zeex/samp-plugin-crashdetect/issues/3]#3[/url]?000076ec in public OnPlayerCommandText (playerid=3, cmdtext[]=@0297b810 "/addattachedobject 967") at E:\GAME\Server PutuSuhartawansamp03DL_svr_R1_win32\pawno\include\fixes.inc:7900
Code: CMD:addattachedobject(playerid, params[])
{
new objectid;
if(sscanf(params, "i", objectid)) return SendClientMessage(playerid, COLOR_ERROR, ""COL_RED"USAGE: "COL_YELLOW"'/addattachedobject [objectid]'");
//extract params -> new objectid;
? new vid = GetClosestCar(playerid, INVALID_VEHICLE_ID);
? if (inEditingMode[playerid] == 0 && !IsPlayerInAnyVehicle(playerid) ) return SEM(playerid, "Need on editing mode and get in to vehicle sir.");? ?
? ? new Float:VehPos[3];
? ? GetVehiclePos( vid, VehPos[0], VehPos[1], VehPos[2]);
? ? //objectid = CreateDynamicObject(11701, VehPos[0], VehPos[1], VehPos[2], 0, 0, 0);
? ? if( IsValidDynamicObject( ExampleAttachedDynamic) )
? ? {
DestroyDynamicObject(ExampleAttachedDynamic);
SEM(playerid, "Sir Old object ExampleAttachedDynamic has been destroyed");
cmd_addattachedobject(playerid);
? ? }
? ? else
? ? {
SetPVarInt(playerid, "ObjectIDinVehicle", objectid);
ExampleAttachedDynamic = CreateDynamicObject(objectid, VehPos[0], VehPos[1], VehPos[2] , 0, 0, 0);
Streamer_Update(playerid);
inEditingMode[playerid] = 1;
EditDynamicObject(playerid, ExampleAttachedDynamic);
return SEM(playerid, "Sir you are now in editing Dynamic Object mode.");
? ? }
? return 1;
}
issues:
https://github.com/Zeex/samp-plugin-cras.../issues/96
|
|
|
|
|