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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,906
» Latest member: stryzo125
» Forum threads: 2,399
» Forum posts: 12,311

Full Statistics

Online Users
There are currently 229 online users.
» 1 Member(s) | 225 Guest(s)
Google, Bing, Baidu, stryzo125

Latest Threads
HWID BAN
Forum: Questions and Suggestions
Last Post: stryzo125
2 hours ago
» Replies: 2
» Views: 1,872
Unban
Forum: Chat
Last Post: stryzo125
Yesterday, 10:35 PM
» Replies: 0
» Views: 39
problem dialog clan membe...
Forum: Pawn Scripting
Last Post: samuelmatheus0502
Yesterday, 10:16 PM
» Replies: 1
» Views: 106
Looking for Players for N...
Forum: Chat
Last Post: AlmightyJeremy
2026-02-04, 11:22 PM
» Replies: 0
» Views: 32
Manual sorting of servers...
Forum: Questions and Suggestions
Last Post: cherybomb
2026-02-04, 02:58 AM
» Replies: 2
» Views: 1,436
Project: Las Venturas Rol...
Forum: Advertisements
Last Post: Kremzy
2026-02-02, 10:14 PM
» Replies: 0
» Views: 57
Looking for Players for N...
Forum: Advertisements
Last Post: AlmightyJeremy
2026-02-02, 07:04 PM
» Replies: 0
» Views: 43
ExDM Reborn
Forum: Advertisements
Last Post: 0775448400
2026-02-02, 03:38 PM
» Replies: 1
» Views: 83
IPv6 support
Forum: Questions and Suggestions
Last Post: Markski
2026-02-02, 12:58 AM
» Replies: 1
» Views: 60
AntyCheat System [SA-MP/O...
Forum: Filterscripts
Last Post: Pevenaider
2026-01-27, 08:48 PM
» Replies: 11
» Views: 19,370

 
  error 035: argument type mismatch (argument 3)
Posted by: Boxi - 2021-04-13, 02:33 AM - Forum: Pawn Scripting - Replies (1)

Hi all! i updated my gm to the eSelection version that TommyB123 (https://github.com/TommyB123/eSelection)?released and everything is fine, except for these 2 errors that it tells me that the library has?



PHP Code:
eSelection.inc(124) : error 035argument type mismatch (argument 3)

eSelection.inc(205) : error 035argument type mismatch (argument 3



(they were already there before i changed the code in my gm). does anyone know what i can do? the lines of the errors are these:



PHP Code:
static stock SetModelSelectionModelBox(playeridcount, const model[g_eMenuModelData])

{

PlayerTextDrawSetPreviewModel(playeridg_ePlayerMenuData[playerid][g_eMenuItems][count], model[g_eMenuModel]);

if(
model[g_eItemUseRotation])

{

PlayerTextDrawSetPreviewRot(playeridg_ePlayerMenuData[playerid][g_eMenuItems][count], model[g_eItemRotX], model[g_eItemRotY], model[g_eItemRotZ], model[g_eItemZoom]);

}

else

{

PlayerTextDrawSetPreviewRot(playeridg_ePlayerMenuData[playerid][g_eMenuItems][count], 0.00.00.0);

}



PlayerTextDrawShow(playeridg_ePlayerMenuData[playerid][g_eMenuItems][count]);



if(
model[g_eMenuModelText][0])

{

PlayerTextDrawSetString(playeridg_ePlayerMenuData[playerid][g_eMenuTextDisplay][count], model[g_eMenuModelText]); //line 205

PlayerTextDrawShow(playeridg_ePlayerMenuData[playerid][g_eMenuTextDisplay][count]);

}





PHP Code:
static stock ShowModelSelectionMenuTextDraws(playerid, const header[])

{

DestroyModelSelectionPlayerTDs(playerid);

CreateModelSelectionPlayerTDs(playerid);



for(new 
Iter:list_iter(g_ePlayerMenuData[playerid][g_eMenuModels]), countmodel[g_eMenuModelData]; iter_inside(i); iter_move_next(i))

{

if(
count >= MAX_ITEM_PER_PAGE) break;



iter_get_arr(imodel);

SetModelSelectionModelBox(playeridcountmodel);

count ;

}



//page TD

new page[8];

format(pagesizeof(page), "1/%d", (list_size(g_ePlayerMenuData[playerid][g_eMenuModels]) / MAX_ITEM_PER_PAGE)  1);

PlayerTextDrawSetString(playeridg_ePlayerMenuData[playerid][g_eMenuPageText], page);



//header test

PlayerTextDrawSetString(playeridg_ePlayerMenuData[playerid][g_eMenuHeaderText], header); //line 124

PlayerTextDrawShow(playeridg_ePlayerMenuData[playerid][g_eMenuHeaderText]);

PlayerTextDrawShow(playeridg_ePlayerMenuData[playerid][g_eMenuPageText]);



TextDrawShowForPlayer(playeridg_eMenuRightArrow);

TextDrawShowForPlayer(playeridg_eMenuLeftArrow);

TextDrawShowForPlayer(playeridg_eMenuBackground);

TextDrawShowForPlayer(playeridg_eMenuTopBanner);

TextDrawShowForPlayer(playeridg_eMenuBottomBanner);

TextDrawShowForPlayer(playeridg_eMenuCloseButton);

SelectTextDraw(playerid, -1);





i have all the includes in their latest version, help please :C


  how to compile faster?
Posted by: Boxi - 2021-04-12, 12:52 PM - Forum: Pawn Scripting - Replies (2)

well, basically that would be it, does anyone know what I can do to make my gm compile faster?


  LSRP BETA UCP
Posted by: gerald - 2021-04-12, 09:45 AM - Forum: Videos and Screenshots - Replies (3)

https://www.youtube.com/watch?v=5nrS_j5-sXs


  Looking for a roleplay scripter for LSRP replica.
Posted by: gerald - 2021-04-12, 09:40 AM - Forum: Programming - Replies (5)

need a scripter for my LSRP Replica server, right now items in /buy is not giving playee weapon using GivePlayerValidWeapon
discord.gg/dDWVHEY
my discord heavyweight#0651


  system for storing player data
Posted by: Nightmare - 2021-04-11, 05:44 PM - Forum: Support - Replies (1)

i'm looking one system for stroring player data and i found the SQLite and MySQL. The both system are different each other? Or they are the same thing? What system is the for the Data Base? Thx


  Help with sqlite floats
Posted by: Turk54721 - 2021-04-11, 12:12 PM - Forum: Pawn Scripting - Replies (13)

Hello for some reason floats are being loaded normaly (Armour and health is 1 and cordinates are like 5169131981403219871320)

Code:
enum PlayerStats{
    Mode,// 0-not logged   1-logged
    Team,
    Skin,
    Money,
    Score,
    Float:Health,
    Float:Armour,
    Float:X,
    Float:Y,
    Float:Z};

new Player[MAX_PLAYERS][PlayerStats];

Code:
GetPlayerPos(playerid, Player[playerid][X], Player[playerid][Y], Player[playerid][Z]);
format(Query,sizeof(Query),"UPDATE `USERS` SET TEAM = '%d', SKIN = '%d', MONEY = '%d', SCORE = '%d', HEALTH = '%f', ARMOUR = '%f', X = '%f', Y = '%f', Z = '%f' WHERE `NAME` = '%s' COLLATE NOCASE",
Player[playerid][Team],
Player[playerid][Skin],
GetPlayerMoney(playerid),//
GetPlayerScore(playerid),//
GetPlayerHealth(playerid, Player[playerid][Health]),//
GetPlayerArmour(playerid, Player[playerid][Armour]),//
Player[playerid][X],//
Player[playerid][Y],//
Player[playerid][Z],//
DB_Escape(name));
db_query(Database, Query);

Code:
format(Query, sizeof(Query), "SELECT * FROM `USERS` WHERE `NAME` = '%s' COLLATE NOCASE AND `PASSWORD` = '%s'", DB_Escape(name), DB_Escape(inputtext));
Result = db_query(Database, Query);
if(db_num_rows(Result)){
new Field[ 20 ]; //Creating a field to retrieve the data
db_get_field_assoc(Result, "TEAM", Field, 30);
Player[playerid][Team] = strval(Field);
db_get_field_assoc(Result, "SKIN", Field, 30);
Player[playerid][Skin] = strval(Field);
db_get_field_assoc(Result, "MONEY", Field, 30);
Player[playerid][Money] = strval(Field);
db_get_field_assoc(Result, "SCORE", Field, 30);
Player[playerid][Score] = strval(Field);
db_get_field_assoc_float(Result, "HEALTH");
Player[playerid][Health] = floatstr(Field);
db_get_field_assoc_float(Result, "ARMOUR");
Player[playerid][Armour] = floatstr(Field);
db_get_field_assoc_float(Result, "X");
Player[playerid][X] = floatstr(Field);
db_get_field_assoc_float(Result, "Y");
Player[playerid][Y] = floatstr(Field);
db_get_field_assoc_float(Result, "Z");
Player[playerid][Z] = floatstr(Field);


Code:
format(Query, sizeof(Query), "INSERT INTO `USERS` (`NAME`, `PASSWORD`, `IP`, `TEAM`, `SKIN`, `MONEY`, `SCORE`, `HEALTH`, `ARMOUR`, `X`, `Y`, `Z`) VALUES('%s','%s','%s', '0', '0', '0', '0', '%f', '%f', '%f', '%f', '%f')", DB_Escape(name), DB_Escape(inputtext), DB_Escape(ip));

Let me know if you need more code to understand, thank you


Question [HELP] Changing the skin when OnPlayerConnect
Posted by: romanstti - 2021-04-10, 02:31 PM - Forum: Pawn Scripting - Replies (3)





Hello there!

First of all, good morning, it is 11:11 here already.







I would like to clarify that I am ALL NEW on this Pawn scripting thing... I spent the whole night reading documents of variables and strings...

I still can not figure out what am I doing wrong!

Maybe someone here can help?




So, I will explain you what I am trying to do, because it is probably one of the most easiest things in Pawn scripting and if you take the time to *explain* me what I am doing wrong and how to apply it as it should, then I will be one of the happiest person alive!







I am trying to change the skin automatically only if the name of the player connected is equal to: "Luna_Beaule"



I have some custom skins added to the server, and I am trying to figure out how to change them if the X (GetPlayerName I GUESS!?!?!?) is the same as: Luna_Beaule.








I'll leave below the code I wrote *so wrong, please do not laugh, thank you*:



Code:
public OnPlayerConnect(playerid)

{

SendClientMessage (playerid, -1, "Servidor oficial de pruebas.");



return 1;

}

if (GetPlayerName(playerid, name) == Luna_Beaule) return SetPlayerSkin(playerid, 20003);



return 1;

}







  Textdraw Actions
Posted by: ForT - 2021-04-10, 06:28 AM - Forum: Libraries - Replies (4)

Textdraw Actions



A simple include that shows a small action box in the center of the screen with options Y and N for the player to choose.



Download

https://github.com/dimmyi/td-actions



Preview:

Image: https://i.imgur.com/90W43SI.png

[Image: 8VQLmcn.gif]



Usage:

PHP Code:
#include <td-actions>



CMD:infernus(playerid)

{

? ? 
ShowActionForPlayer(playeridActionInfernus"Do you really want to spawn a infernus in this position?", .action_time 10000);



? ? return 
1;

}



Action:ActionInfernus(playeridresponse)

{

? ? if (
response == ACTION_RESPONSE_YES)

? ? {

? ? ? ? new 
Float:xFloat:yFloat:zFloat:ang;



? ? ? ? 
GetPlayerPos(playeridxyz);

? ? ? ? 
GetPlayerFacingAngle(playeridang);



? ? ? ? new 
vehicleid CreateVehicle(411,

? ? ? ? ? ? 
x  2.5 floatsin(-angdegrees),

? ? ? ? ? ? 
y  2.5 floatcos(-angdegrees),

? ? ? ? ? ? 
z  0.3,

? ? ? ? ? ? 
ang,

? ? ? ? ? ? 
0,

? ? ? ? ? ? 
0,

? ? ? ? ? ? -
1);



? ? ? ? 
LinkVehicleToInterior(vehicleidGetPlayerInterior(playerid));

? ? ? ? 
SetVehicleVirtualWorld(vehicleidGetPlayerVirtualWorld(playerid));

? ? } else {

? ? ? ? 
SendClientMessage(playerid, -1"You didn't want to spawn a infernus.");

? ? }





Responses:

  1. ACTION_RESPONSE_NO_CHOOSE - When the player does not choose an option

  2. ACTION_RESPONSE_NO -?When the player presses the N key

  3. ACTION_RESPONSE_YES -?When the player presses the Y?key


  discord-connector, how to send private messages?
Posted by: ???????? - 2021-04-09, 02:15 PM - Forum: Pawn Scripting - Replies (1)

Hello! I need some help over here with this exiting plugin. I can't get how to send private messages to player from game?

Private messages, not public in channels. If someone got through this hell before me - I ask you to help me to cross this damn river..



https://github.com/maddinat0r/samp-discord-connector


  SHA256 SALT in PHP?
Posted by: CoPete? - 2021-04-08, 08:59 PM - Forum: Programming - Replies (1)

Hi!?please I would like you to help me authenticate the users on the web page, the problem I have is that I use in the gamemode the password settlement system sha256 a salt that I got in forum samp (maybe they know which)?and I don't know how I could do an autiticator?in php, thanks



[Image: TtrFlqW.png]