| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 7,700
» Latest member: TheDoctor
» Forum threads: 2,356
» Forum posts: 12,303
Full Statistics
|
| Online Users |
There are currently 213 online users. » 0 Member(s) | 210 Guest(s) Google, Bing, Baidu
|
| Latest Threads |
Client issue with object
Forum: Support
Last Post: TheDoctor
7 hours ago
» Replies: 0
» Views: 16
|
San Andreas Police Pursui...
Forum: Advertisements
Last Post: BriBri
Yesterday, 12:06 AM
» Replies: 0
» Views: 28
|
[Include] OpenGate (Abrir...
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2025-11-13, 06:49 PM
» Replies: 0
» Views: 30
|
OpenGate (Open Proximity ...
Forum: Libraries
Last Post: Crazy_ArKzX
2025-11-13, 06:46 PM
» Replies: 0
» Views: 32
|
LS City Hall
Forum: Maps
Last Post: cosminupgaming
2025-11-12, 04:22 PM
» Replies: 3
» Views: 2,653
|
Crime Base
Forum: Maps
Last Post: cosminupgaming
2025-11-12, 04:19 PM
» Replies: 2
» Views: 1,247
|
GTA SA-MP Scripting: Issu...
Forum: General Discussions
Last Post: williamrhein
2025-11-12, 10:16 AM
» Replies: 0
» Views: 45
|
is it worth creating a se...
Forum: General Discussions
Last Post: cosminupgaming
2025-11-11, 05:30 PM
» Replies: 13
» Views: 18,321
|
Looking for an English De...
Forum: General Discussions
Last Post: cosminupgaming
2025-11-11, 05:21 PM
» Replies: 2
» Views: 2,806
|
Awakeninga an old server.
Forum: Support
Last Post: drwnrbbt
2025-11-11, 02:26 PM
» Replies: 0
» Views: 49
|
|
|
| Why the accents are not working? |
|
Posted by: hiwyn - 2022-04-23, 01:51 PM - Forum: Support
- Replies (1)
|
 |
Why the accents are not working?
I mean, if i do:
SendClientMessage(i, COLOR_LIGHTRED, "O servidor ser?
Ingame it looks like:
![[Image: Screenshot-from-2022-04-23-10-49-10.png]](https://i.ibb.co/TmxHLCW/Screenshot-from-2022-04-23-10-49-10.png)
And all other accents like ?, ?, ? looks like this /\
---
I'm compiling it on linux with this: https://github.com/pawn-lang/compiler/releases
And with this .vscode/tasks.json:
Code: {
? // See https://go.microsoft.com/fwlink/?LinkId=733558
? // for the documentation about the tasks.json format
? "version": "2.0.0",
? "tasks": [
? ? {
? ? ? "label": "build",
? ? ? "type": "shell",
? ? ? "command": "/usr/bin/pawncc",
? ? ? "args": [
? ? ? ? "${file}",
? ? ? ? "\"-;\"",
? ? ? ? "\"-(\"",
? ? ? ? "-i\"/home/hiwyn/Documents/sampserver/include/\""
? ? ? ],
? ? ? "group": {
? ? ? ? "kind": "build",
? ? ? ? "isDefault": true
? ? ? },
? ? ? "isBackground": false,
? ? ? "presentation": {
? ? ? ? "reveal": "silent",
? ? ? ? "clear": false,
? ? ? ? "panel": "dedicated"
? ? ? },
? ? ? "problemMatcher": [
? ? ? ? {
? ? ? ? ? "base": "$pawncc",
? ? ? ? ? "fileLocation": "relative"
? ? ? ? }
? ? ? ]
? ? }
? ]
}
What else should i do?
|
|
|
|
| My server is not showing on internet tab |
|
Posted by: hiwyn - 2022-04-23, 01:36 PM - Forum: Support
- Replies (1)
|
 |
Just change on server.cfg
Isn't enough?
what should i do to it starts to show?
hosted tab is mouth paid, right?
btw where is the official site to buy it?
but internet tab is free, right?
|
|
|
|
| make vscode compiler rewrite actual file |
|
Posted by: hiwyn - 2022-04-23, 01:25 PM - Forum: Support
- Replies (1)
|
 |
everytime i press F5 to compile a filterscript or a gamemode
it creates the .amx, but creates where i open the vscode
i mean, if i did:
cd sampserver && code .
if i open a file MISSIONS.pwn in sampserver/gamemodes
it will generate the amx in /home/sampserver instead of /home/sampserver/gamemodes
there is a way to instead of generate the amx there it get the file path (.pwn i'm editing) and creates the amx there rewriting the actual?
its boring, every time i edit a lib or a gm or a filterscript i got to move the amx after finish
I'm compiling it on linux with this: https://github.com/pawn-lang/compiler/releases
And with this .vscode/tasks.json:
Code: {
? // See https://go.microsoft.com/fwlink/?LinkId=733558
? // for the documentation about the tasks.json format
? "version": "2.0.0",
? "tasks": [
? ? {
? ? ? "label": "build",
? ? ? "type": "shell",
? ? ? "command": "/usr/bin/pawncc",
? ? ? "args": [
? ? ? ? "${file}",
? ? ? ? "\"-;\"",
? ? ? ? "\"-(\"",
? ? ? ? "-i\"/home/hiwyn/Documents/sampserver/include/\""
? ? ? ],
? ? ? "group": {
? ? ? ? "kind": "build",
? ? ? ? "isDefault": true
? ? ? },
? ? ? "isBackground": false,
? ? ? "presentation": {
? ? ? ? "reveal": "silent",
? ? ? ? "clear": false,
? ? ? ? "panel": "dedicated"
? ? ? },
? ? ? "problemMatcher": [
? ? ? ? {
? ? ? ? ? "base": "$pawncc",
? ? ? ? ? "fileLocation": "relative"
? ? ? ? }
? ? ? ]
? ? }
? ]
}
|
|
|
|
| Health not saving in SQLite? |
|
Posted by: CrypticSin - 2022-04-14, 12:14 AM - Forum: Pawn Scripting
- Replies (3)
|
 |
Trying to save player health but doesn't seem to be working i'll like to know what im doing wrong?
Created a table in OnGameModeInit:
PHP Code: db_query(server_database, "CREATE TABLE IF NOT EXISTS `USERS` (`NAME`, `IP`, `REGISTER_DATE`, `PASS`, `SCORE`, `KILLS`, `DEATHS`, `SKIN`, `HEALTH`, `pX`, `pY`, `pZ`, `pA`, `INT`, `WORLD`, `ADMIN`)");;
Selecting data:
PHP Code: public OnPlayerLogin(playerid, bool:success) { if(success) { new query[256], field[24], field2[64]; format(query, sizeof(query), "SELECT * FROM `USERS` WHERE `NAME` = '%s' COLLATE NOCASE", DB_Escape(ReturnName(playerid))); database_result = db_query(server_database, query); if(db_num_rows(database_result)) { db_get_field_assoc(database_result, "ADMIN", field, sizeof(field)); PlayerInfo[playerid][pAdmin] = strval(field);
db_get_field_assoc(database_result, "SCORE", field, sizeof(field)); SetPlayerScore(playerid, strval(field));
db_get_field_assoc(database_result, "KILLS", field, sizeof(field)); PlayerInfo[playerid][pKills] = strval(field);
db_get_field_assoc(database_result, "DEATHS", field, sizeof(field)); PlayerInfo[playerid][pDeaths] = strval(field);
db_get_field_assoc(database_result, "SKIN", field, sizeof(field)); PlayerInfo[playerid][pSkin] = strval(field);
db_get_field_assoc(database_result, "REGISTER_DATE", field2, sizeof(field2)); PlayerInfo[playerid][pRegister] = field2;
db_get_field_assoc(database_result, "HEALTH", field, sizeof(field)); PlayerInfo[playerid][pHealth] = floatstr(field);
db_get_field_assoc(database_result, "pX", field, sizeof(field)); PlayerInfo[playerid][pX] = floatstr(field);
db_get_field_assoc(database_result, "pY", field, sizeof(field)); PlayerInfo[playerid][pY] = floatstr(field);
db_get_field_assoc(database_result, "pZ", field, sizeof(field)); PlayerInfo[playerid][pZ] = floatstr(field);
db_get_field_assoc(database_result, "pA", field, sizeof(field)); PlayerInfo[playerid][pA] = floatstr(field);
db_get_field_assoc(database_result, "INT", field, sizeof(field)); PlayerInfo[playerid][pInt] = strval(field);
db_get_field_assoc(database_result, "WORLD", field, sizeof(field)); PlayerInfo[playerid][pWorld] = strval(field); }
Inserting Health Data:
PHP Code: ? ?? new query[400]; format(query, sizeof(query), "INSERT INTO `USERS` (`NAME`, `PASS`, `ADMIN`, `IP`, `REGISTER_DATE`, `SCORE`, `KILLS`, `DEATHS`, `SKIN`, `HEALTH`, `pX`, `pY`, `pZ`, `pA`, `INT`, `WORLD`) VALUES ('%s', '%s', %d, '%s', '%s', %d, %d, %d, %d, %f, %f, %f, %f, %f, %d, %d)", DB_Escape(ReturnName(playerid)), password, PLAYER, ip, Date, GetPlayerScore(playerid), PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], GetPlayerSkin(playerid), PlayerInfo[playerid][pHealth], PlayerInfo[playerid][pX], PlayerInfo[playerid][pY], PlayerInfo[playerid][pZ], PlayerInfo[playerid][pA], PlayerInfo[playerid][pInt], PlayerInfo[playerid][pWorld]); database_result = db_query(server_database, query); db_free_result(database_result);
Updating Data:
PHP Code: ? ? ? ? ? ?? stock SaveAccount(playerid) { new query[400], Float:pos[4]; if(PlayerInfo[playerid][pLoggedIn] == true) { GetPlayerPos(playerid, pos[0], pos[1], pos[2]); GetPlayerFacingAngle(playerid, pos[3]); GetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
format(query, sizeof(query), "UPDATE `USERS` SET `ADMIN` = %d, `SCORE` = %d, `KILLS` = %d, `DEATHS` = %d, `SKIN` = %d, `HEALTH` = %f, `pX` = %f, `pY` = %f, `pZ` = %f, `pA` = %f, `INT` = %d, `WORLD` = %d, `ADMIN` = %d WHERE `NAME` = '%s' COLLATE NOCASE", PlayerInfo[playerid][pAdmin], GetPlayerScore(playerid), PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], GetPlayerSkin(playerid), PlayerInfo[playerid][pHealth], pos[0], pos[1], pos[2], pos[3], GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid), PlayerInfo[playerid][pAdmin], DB_Escape(ReturnName(playerid))); database_result = db_query(server_database, query); db_free_result(database_result); } return 1; }
Code runs without errors but im still unsure on why its not saving and loading the players health..
|
|
|
|
texture studio error. |
|
Posted by: TheKosT - 2022-04-02, 02:21 PM - Forum: Support
- Replies (1)
|
 |
Hello friends how are you?
I come to you because after a long time I have decided to dedicate myself to MAPPER again.
I tried to open the texture STUDIO and firstly it gave me an error with the addons, well, I downloaded a gta default to use it and I solved it but I got an error.
Now nothing is loaded from the server, the filescripts are not loaded or anything, could you help me? I would like to map again and with this error I cannot.
Code: SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[10:48:47]
[10:48:47] Server Plugins
[10:48:47] --------------
[10:48:47]? Loading plugin: crashdetect
[10:48:47]? Failed.
[10:48:47]? Loading plugin: sscanf
[10:48:47]? Failed.
[10:48:47]? Loading plugin: streamer
[10:48:47]
*** Streamer Plugin v2.9.4 by Incognito loaded ***
[10:48:47]? Loaded.
[10:48:47]? Loading plugin: filemanager
[10:48:47] ******************
[10:48:47] ** FILE MANAGER **
[10:48:47] **? ? Loaded? ? **
[10:48:47] ** Version 1.5 **
[10:48:47] ******************
[10:48:47]? Loaded.
[10:48:47]? Loaded 2 plugins.
[10:48:47]
[10:48:47] Filterscripts
[10:48:47] ---------------
[10:48:47]? Loading filterscript 'tstudio.amx'...
[10:48:47]? Loading filterscript 'fsdebug.amx'...
[10:48:47]
? *********************
? * SA:MP DEBUG 0.2? *
[10:48:47]? * By Simon Campbell *
? *********************
[10:48:47]? * Version: 0.5d? ? ? *
? *********************
[10:48:47]? * -- LOADED? ? ? ? *
? *********************
[10:48:47]? Loaded 2 filterscripts.
[10:48:47]
/*-----------------------------------*\
[10:48:47] |*=====[TS Base GameMode Loaded]=====*|
[10:48:47] \*-----------------------------------*/
[10:48:47] Number of vehicle models: 0
[10:48:55] [connection] 127.0.0.1:51010 requests connection cookie.
[10:48:56] [connection] incoming connection: 127.0.0.1:51010 id: 0
[10:48:56] [join] James_Kalashnikov has joined the server (0:127.0.0.1)
[10:53:48] RCON (In-Game): Player #0 (James_Kalashnikov) has logged in.
[10:54:39] RCON (In-Game): Player [James_Kalashnikov] sent command: reloadfs
[10:55:00] RCON (In-Game): Player [James_Kalashnikov] sent command: reloadfs
[10:55:13] RCON (In-Game): Player [James_Kalashnikov] sent command: loadfs
[10:55:17] RCON (In-Game): Player [James_Kalashnikov] sent command: unloadfs
[11:08:49] [part] James_Kalashnikov has left the server (0:1)
![[Image: RbWMi2n.jpg]](https://i.imgur.com/RbWMi2n.jpg)
https://i.imgur.com/RbWMi2n.jpg
|
|
|
|
| cache_insert_id always return 0 |
|
Posted by: Axitz - 2022-03-30, 07:41 AM - Forum: Pawn Scripting
- Replies (5)
|
 |
Hi, sorry how bad this was.
I've created a team and the table is also is AI mode. There are multiples team in the query but whenever server restart or player quit, then create team, it always started at 0 again.
PHP Code: forward TeamCreated(b); public TeamCreated(b) {
? ? TeamInfo[b][TeamID] = cache_insert_id(); ? ? teamidd; ? ? printf("New Group is created: [%d]", teamidd ); }
PHP Code: if(strcmp(usage, "create", false) == 0) { ? ? if(!strlen(usage1)) return SCP(playerid, "create <teamname>"); ? ? if(strlen(usage1) < 5 || strlen(usage1) > 30) return SendClientError(playerid, "Your team name is too short or too long! (Min 5, Max 30 chars)"); ? ? new tmID = teamidd; ? ? if(PlayerInfo[playerid][tplayerteam] != -1) return SendClientError(playerid, "You are already in a team. /team leave"); ? ? TeamInfo[tmID][TeamID] = tmID; ? ? PlayerInfo[playerid][tplayerteam] = tmID; ? ? PlayerInfo[playerid][tranklvl] = 0; ? ? myStrcpy(PlayerInfo[playerid][TPTeamName],usage1); ? ? myStrcpy(PlayerInfo[playerid][trankname],"Children"); ? ? TeamInfo[tmID][TActive]=true; new sQuery[528]; mysql_format(sqldb, sQuery, sizeof sQuery, "INSERT INTO `TeamInfo` (`TeamID`, `TeamName`, `StartRank`) VALUES (%d,'%e', 'Children')",tmID,usage1); mysql_tquery(sqldb, sQuery, "TeamCreated", "i",tmID); } else { SCP(playerid, "<create> <input>"); } return 1; }
|
|
|
|
|