Search Results
Fixed it. Код: new some_var; new bit_pos_to_turn_on = 15; some_var |= (1 << bit_pos_to_turn_on); printf((some_var & (1 << bit_pos_to_turn_on)) ? ("pass") : ("fail")); anyway tha...
225
Hi, I need help with bit operations.. Lets say I have all bits "turned on" Код: 11111111111111111111111111111111 Now I have variables ex. Код: new myVar = 8; And I must turn off 8th bit and ...
225
Quote: Originally Posted by Mugalito #define OnDialogResponse reglog_OnDialogResponse reverese this and place at the top. No, it does not work.
104
error 004: function "reglog_OnDialogResponse" is not implemented code Код: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { return reglog_OnDialogResponse(playerid,...
104
dont update pls just relax and let samp die ...
59,202
if(fexist(string)) will check if Accounts/SOMEFILE.ini exist, <<< TRUE if(fexist(params)) will check if SOMEFILE exist <<< FALSE WAY
125
Quote: Originally Posted by dugi You can already do it using function available in sa-mp since version 0.3e: https://sampwiki.blast.hk/wiki/SetObjectMaterialText I wanna use that objec...
11,968
Is there any way to create only text as object? Sometning like transparent texture and only text on it.. ps. I don\'t need .txd, .dff I need.
11,968
Quote: Originally Posted by Alf21 There need to be security mechanics like checking objects files for malware or smth (external upload or new file format that compiles into clean code or s...
12,527
This is what we need. Keep up
36,239
I know that way (PlayerData[playerid] = PlayerData[MAX_PLAYERS]) but i heard that memcpy way is 'faster' anyway tnx
75
http://prntscr.com/g7px5j - OnPlayerConnect http://prntscr.com/g7pxaq - OnGameModeInit ofc PlayerData[MAX_PLAYERS + 1][ENUM_PLAYER_DATA] Tried sizeof PlayerData[][] and without any brackets []
75
Quote: Originally Posted by NaS The streamer's ID (which is returned by CreateDynamicVehicle) will always be the same for that Vehicle, but SAMP's internal Vehicle ID for that Vehicle may ...
6,349
What is happening in this case: [code]new VehicleID; VehicleID = CreateDynamicVehicle(...); // ok, now VehicleID = 5 (example) // imagine there is no1 in stream distance (so vehicle will be destroyed...
6,349
Quote: Originally Posted by Dayrion Can we deactivate commands per player? Code: new bool: actived[MAX_PLAYERS] = true; CMD:example(id, params[]) { if (!actived[id]) return 1; //........
26,147
Hi, I have problem with smooth moving object. Here is my code: Код: CMD:operate(playerid, params[]) { if (sscanf(params, "d", params[0])) return 1; if (params[0] == 1) { for(new i = 0; i < ...
57
When I have 23 players or higher it just stop the server, and shows message to player You are banned from this server.
79