SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: SiaReyes
Forum: Scripting Help 21/05/2020, 07:12 AM
Replies: 6
Views: 166
Posted By SiaReyes
Re: mysql counting rows in accounts table

new total = cache_insert_id();
format(string, sizeof(string), "{FFFF00}%s [%d] has successfully registered. [Total Accounts: %d]",pName(playerid), playerid, total);
Forum: Scripting Help 25/04/2020, 01:52 AM
Replies: 9
Views: 225
Posted By SiaReyes
Re: MySQL error

Alter Table `playerbase`
MODIFY `spvip` mediumint(2) NOT NULL DEFAULT 0;

run this query in SQL Tab in phpmyadmin
Forum: Scripting Help 24/04/2020, 02:33 AM
Replies: 8
Views: 262
Posted By SiaReyes
Re: Message gang

if(GetPlayerTeam(p) == PlayerInfo[playerid][f_Member])
Forum: Scripting Help 23/04/2020, 04:23 AM
Replies: 9
Views: 225
Posted By SiaReyes
Re: MySQL error

Field 'spvip', SET default value as 0.

Example:

`spvip` mediumint(2) NOT NULL DEFAULT 0,
Forum: Scripting Help 20/04/2020, 11:03 AM
Replies: 2
Views: 80
Posted By SiaReyes
Re: DialogCenter problem

Don't use \t for those three just leave a space.

Ex:

format(string, 128, "\\c\t{F5DA81}Tedade Bomb C4 {FF0000}:\t{F5DA81}%d\n", HasC4[playerid]);
strcat(dialog, string);
Forum: Scripting Help 20/04/2020, 03:02 AM
Replies: 2
Views: 140
Posted By SiaReyes
Re: Enum Random Spawn

GetSpawnPosFromID(id){
new dsid[],count;
for(new i,j=sizeof(ds); i < j; i++)
{
if(ds[i][0]==id){
dsid[count++]=i;
}
}
return...
Forum: Scripting Help 19/04/2020, 10:57 AM
Replies: 11
Views: 250
Posted By SiaReyes
Re: [HELP]Lines on map

You can get that gang zone in Gammix's Battleground Gamemode.
Forum: Scripting Help 19/04/2020, 06:34 AM
Replies: 10
Views: 356
Posted By SiaReyes
Re: INVALID_PLAYER_ID

Use "r" instead "u"
Forum: Scripting Help 19/04/2020, 04:29 AM
Replies: 2
Views: 140
Posted By SiaReyes
Enum Random Spawn

I want to make random spawns using enum with ids.

Example

enum dsinfo
{
id,
Float:X,
Float:Y,
Float:Z,
Forum: Scripting Help 31/03/2020, 03:59 PM
Replies: 21
Views: 825
Posted By SiaReyes
Re: messages related to joining/leaving/dm chating shows the admin ranks, but doesn't show the RCON one.

Dude, when you connect to server, you are not logged into rcon, so it returns false. That's why it doesn't show [RCON Admin].
Forum: Scripting Help 31/03/2020, 02:23 AM
Replies: 1
Views: 93
Posted By SiaReyes
Re: doubt command

new MoneyLock[MAX_PLAYERS];
CMD:recibirpaga(playerid,params[])
{
if(PlayerInfo[playerid][jMiembro] == 3)
{
if(MoneyLock[playerid] >= gettime()) return SendClientMessage(playerid, -1,...
Forum: Scripting Help 29/03/2020, 04:55 PM
Replies: 21
Views: 494
Posted By SiaReyes
Re: Problem interior

Check the interior co-ordinates of int_4 are right.
Forum: Scripting Help 29/03/2020, 03:24 PM
Replies: 4
Views: 120
Posted By SiaReyes
Re: MySQL save while Kick/Ban

Actually, I have an idea. Delay the ban/kick and save the player data before kick/ban.
Forum: Gamemode Scripts 29/03/2020, 11:29 AM
Replies: 3
Views: 1,395
Posted By SiaReyes
Re: Si Freeroam 2.0 (Full Version)

public OnPlayerDeath(playerid, killerid, reason)
{
PlayerInfo[playerid][pDeaths]++;

if(GetPlayerMoney(playerid) < 500)
{
SendClientMessage(playerid, CRED, "[SERVER]: You...
Forum: Scripting Help 29/03/2020, 11:07 AM
Replies: 5
Views: 150
Posted By SiaReyes
Re: /changename already exist name help

Fore more secure and faster method, I suggest you to use Calisthenics's method.
Forum: Scripting Help 29/03/2020, 05:49 AM
Replies: 5
Views: 145
Posted By SiaReyes
Re: SAMP_INCLUDES_VERSION warning

oh, can you show the full warning?
Forum: Scripting Help 29/03/2020, 05:46 AM
Replies: 21
Views: 825
Posted By SiaReyes
Forum: Scripting Help 29/03/2020, 05:43 AM
Replies: 5
Views: 145
Posted By SiaReyes
Re: SAMP_INCLUDES_VERSION warning

You can find that in a_samp.inc. I don't know for what it is used for. You can comment it!
public const SAMP_INCLUDES_VERSION = 0x037030;
Forum: Scripting Help 29/03/2020, 03:33 AM
Replies: 3
Views: 78
Posted By SiaReyes
Re: How to name someting

CMD:getjob(playerid)
{
if(PlayerInfo[playerid][pJob] == 1) return SendClientMessage(playerid, -1, "You are already in fisherman job");

return 1;
}
Forum: Scripting Help 29/03/2020, 03:24 AM
Replies: 5
Views: 150
Posted By SiaReyes
Re: /changename already exist name help

if(cache_num_rows()) return error;
Forum: Scripting Help 28/03/2020, 05:35 AM
Replies: 5
Views: 144
Posted By SiaReyes
Re: Help For Top Player Mysql R41+

"SELECT money FROM accounts ORDERBY money DESC LIMIT 30;"

This is the query, you can set limit like how many players you want to display. 30 would be enough.
Forum: Filterscripts 24/03/2020, 03:21 PM
Replies: 196
[FilterScript] Yet Another House System
Views: 91,791
Posted By SiaReyes
Re: Yet Another House System

You can search for tutorials in this forum such as "How to use pawn", "How to start a samp server"
Forum: Scripting Help 24/03/2020, 09:16 AM
Replies: 21
Views: 378
Posted By SiaReyes
Re: mysql_tquery not calling callback.

Or just put the InitCarData(); after few lines of codes.(even try at last)
Forum: Scripting Help 24/03/2020, 08:21 AM
Replies: 21
Views: 378
Posted By SiaReyes
Re: mysql_tquery not calling callback.

Try mysql_pquery instead mysql_tquery.
Forum: Scripting Help 24/03/2020, 08:13 AM
Replies: 21
Views: 378
Posted By SiaReyes
Re: mysql_tquery not calling callback.

You mean the LoadCarData is called but no data is loaded?
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 05:10 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.