SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 251
Search took 0.00 seconds.
Search: Posts Made By: Filbert
Forum: Scripting Help 24/06/2020, 01:41 PM
Replies: 6
Views: 216
Posted By Filbert
Re: Played time problem - gettime();

https://wiki.sa-mp.com/wiki/NetStats_GetConnectedTime

Try to use this, see if it fixes the prob..

EDIT: You don't save it to sql or something else, no?
Forum: Scripting Help 23/06/2020, 08:07 PM
Replies: 14
Views: 503
Posted By Filbert
Re: HELP DIALOG

if(listitem == 0) {
if((PlayerInfo[playerid][pCredits] < 500)) SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Ban khong du 500 Credits de su dung dich vu nay.");
else {
new szMessage[128],...
Forum: Scripting Help 01/06/2020, 10:42 AM
Replies: 5
Views: 237
Posted By Filbert
Re: SetPlayerHealth problem with weapon-config

Ey man, how did you fix it? I'm facing the same problem, fall damage and i couldnt use SetPlayerHealth.. it returns an unknown cmd. Here's my codes..

public OnPlayerDamage(&playerid,...
Forum: Scripting Help 01/06/2020, 08:47 AM
Replies: 3
Views: 158
Posted By Filbert
Re: weapon-config and /kill problem

No i didnt, should i really use it and cant use setplayerhealth?

EDIT: So, i've tried it without adding anything in the OnPlayerDamage(), and the SetPlayerHealth is working, so there should be...
Forum: Scripting Help 01/06/2020, 08:27 AM
Replies: 3
Views: 158
Posted By Filbert
Forum: Scripting Help 31/05/2020, 02:32 PM
Replies: 3
Views: 158
Posted By Filbert
weapon-config and /kill problem

i'm using weapon-config.inc by Slice and couldnt use the /kill and /class commands. They were unknown command..
Here's the code :

CMD:class(playerid, params[])
{
SetPlayerHealth(playerid,0);...
Forum: Scripting Help 30/05/2020, 09:52 AM
Replies: 1
Views: 100
Posted By Filbert
Re: connect ultra-h sql

you have to make the database in the panel first. use "localhost" in your script as the server name
Forum: Scripting Help 27/05/2020, 11:06 AM
Replies: 7
Views: 327
Posted By Filbert
Re: Discord DCC_GetRoleName

I have it like this :
if(!strcmp(command, "!mycommand", true)) {
for(new i = 0; i < roleCount; i++) {
DCC_GetGuildRole(g_Discord_Guild, i, rolename);
...
Forum: Scripting Help 27/05/2020, 04:27 AM
Replies: 7
Views: 327
Posted By Filbert
Re: Discord DCC_GetRoleName

O ma gad.. i just jumped out of my bed knowing that someone just replied my topic xd... Thanks bud gonna test it

EDIT: I got warning 225: unreachable code for every breaks.. how to fix that?
Forum: Scripting Help 26/05/2020, 08:01 PM
Replies: 7
Views: 327
Posted By Filbert
Re: Discord DCC_GetRoleName

bump :) please anyone.. i really need it
Forum: Scripting Help 26/05/2020, 03:42 PM
Replies: 7
Views: 327
Posted By Filbert
Re: Discord DCC_GetRoleName

So, is this already correct? Because i dont even think so.
new DCC_Role:role, rolename[128];//<<<<<<<<<<<<<<<<<<<<
DCC_GetRoleName(role, rolename, 128);//<<<<<<<<<<<<<<<<<<<<
I tried to get...
Forum: Scripting Help 26/05/2020, 03:03 PM
Replies: 7
Views: 327
Posted By Filbert
Question Discord DCC_GetRoleName

How can i get the 'rolename'?
forward DCC_OnMessageCreate(DCC_Message:message);
public DCC_OnMessageCreate(DCC_Message:message)
{
new realMsg[100];
DCC_GetMessageContent(message, realMsg,...
Forum: Scripting Help 26/05/2020, 12:03 PM
Replies: 4
Views: 163
Posted By Filbert
Re: can i do this? (||)

1 more question..
How can i get the 'rolename'?
forward DCC_OnMessageCreate(DCC_Message:message);
public DCC_OnMessageCreate(DCC_Message:message)
{
new realMsg[100];
...
Forum: Scripting Help 26/05/2020, 10:11 AM
Replies: 4
Views: 163
Posted By Filbert
Re: can i do this? (||)

I have 8 or more admin roles.. It would be too long if i do that (i guess). Or can i use switch or something likenew g_Role[8];?

But i have no idea how to make that. Can you give me an example?...
Forum: Scripting Help 26/05/2020, 09:30 AM
Replies: 4
Views: 163
Posted By Filbert
Question can i do this? (||)

if(channel == g_Discord_Admin_CMD)
{
if(!strcmp(command, "!mycommand", true)) {
if(role == (g_Role_Level_1 || g_Role_Level_2 || g_Role_Level_3 || g_Role_Level_4)) {...
Forum: Scripting Help 23/05/2020, 06:26 AM
Replies: 6
Views: 191
Posted By Filbert
Re: labels doesnt load

So there's no other way except updating the mysql plugin?
Forum: Scripting Help 23/05/2020, 04:17 AM
Replies: 6
Views: 191
Posted By Filbert
Re: labels doesnt load

Oh, i'm using R39-5, what should i do with that? Sorry, but it'll take too much time if i should update the whole gamemode to R41
Forum: Scripting Help 23/05/2020, 03:24 AM
Replies: 6
Views: 191
Posted By Filbert
labels doesnt load

I'm using this filterscript (https://forum.sa-mp.com/showthread.php?t=259368) but I want it in mysql
Firstly, I tried this :

public OnGameModeInit()
{
...
Forum: Scripting Help 22/05/2020, 06:32 AM
Replies: 1
Views: 105
Posted By Filbert
error 035: argument type mismatch (argument 2)

if(InDM[playerid] == 0 && PlayerInfo[playerid][Color] == 1) {
new colorhex[128];
switch(PlayerInfo[playerid][pColor]) {
case 1: colorhex = "0xFF0000AA";
case 2:...
Forum: Scripting Help 21/05/2020, 09:57 AM
Replies: 6
Views: 239
Posted By Filbert
Re: mysql counting rows in accounts table

Thanks.. It's working. I just need to make it "register+1" to include the registered player... REP+
Forum: Scripting Help 21/05/2020, 04:44 AM
Replies: 6
Views: 239
Posted By Filbert
Re: mysql counting rows in accounts table

It still says that i have 0 players registered. Or should I make it tquery?
Forum: Scripting Help 20/05/2020, 08:21 PM
Replies: 6
Views: 239
Posted By Filbert
mysql counting rows in accounts table

So I just put this to my register action :

...

new registered[24], Cache:aresult = mysql_query(mysql, "SELECT COUNT(*) FROM `accounts`");
cache_get_field_content_int(0, registered, mysql);...
Forum: Scripting Help 20/05/2020, 01:10 PM
Replies: 3
Views: 156
Posted By Filbert
Re: dini to mysql

I dont get it. I can compiled the old gm with the same "HouseInfo[housenumber][Owner]=asname;".
Forum: Scripting Help 19/05/2020, 07:40 PM
Replies: 5
Views: 201
Posted By Filbert
Re: countdown for near players

So guys, I made it like this :

forward Float:GetDistanceBetweenPlayers(p1,p2);
public Float:GetDistanceBetweenPlayers(p1,p2){
new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
if...
Forum: Scripting Help 19/05/2020, 10:16 AM
Replies: 3
Views: 156
Posted By Filbert
dini to mysql

Is this correct?

stock afixhs(playerid)
{
new asname[MAX_PLAYER_NAME];
GetPlayerName(playerid,asname, sizeof(asname));
new str1[256],str[256];
format(str, sizeof(str),...
Showing results 1 to 25 of 251

 

All times are GMT. The time now is 12:38 PM.


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