SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 82
Search took 0.01 seconds.
Search: Posts Made By: cSharp
Forum: Scripting Help 10/10/2019, 05:46 AM
Replies: 24
Views: 649
Posted By cSharp
Re: Variable doesn't get called with GVar

the issue is clear as day, i hope anyone actually looked over the code


spoiler alert, i didn't.


SetGVarString(gServerName, "aRP Server Test");
turns into
SetGVarString("gServerName", "aRP...
Forum: Scripting Help 09/10/2019, 12:51 PM
Replies: 24
Views: 649
Posted By cSharp
Re: Variable doesn't get called with GVar

filterscripts has higher priority than game modes.
Forum: Scripting Help 05/10/2019, 11:48 AM
Replies: 23
Views: 640
Posted By cSharp
Re: making a global timer

I can't see any possibility where updating EVERYTHING on the spot using INI files embedded in PAWN is more efficient than making a steady 30 minute timer.
Forum: Scripting Help 05/10/2019, 11:44 AM
Replies: 23
Views: 640
Posted By cSharp
Re: making a global timer

It already runs each 30 minutes, when there's a player online. It'd be useless to have the timer running when there's no players online, right?
Forum: Scripting Help 05/10/2019, 11:42 AM
Replies: 23
Views: 640
Posted By cSharp
Re: making a global timer

Stop making people clueless.

Using initialization files in 2019 is a cringeworthy thing to begin with, but saying you should rewrite those lame files with a shitty emulator like the SAMP server?...
Forum: Scripting Help 05/10/2019, 11:37 AM
Replies: 2
Views: 108
Posted By cSharp
Re: /stats cmd not working completely

Your code gave me eye cancer, I fixed it for you:
CMD:stats(playerid, params[]) {
new targetid;

if(sscanf(params, "u", targetid)) {
SendClientMessage(playerid, red, "Player stats: /stats...
Forum: Scripting Help 05/10/2019, 11:29 AM
Replies: 23
Views: 640
Posted By cSharp
Re: making a global timer

Adding onto this because the previous given code was ridiculous:

new backupTimer = -1;

public OnPlayerConnect(playerid) {
if(backupTimer == -1)
backupTimer = SetTimer("OnServerBackup", 30...
Forum: Scripting Help 05/10/2019, 11:16 AM
Replies: 23
Views: 640
Posted By cSharp
Re: making a global timer

I hope you're kidding and you now realize this is initialization files we're on about.

Have fun saving that shit every second in a populated server my dude.
Forum: Server Support 04/10/2019, 11:17 PM
Replies: 14,751
Views: 1,882,697
Posted By cSharp
Re: Looking for scripters/helpers? Post here!

https://i.imgur.com/vlmzEwQ.png

We're looking for interior mappers, join our Discord:
Forum: Scripting Help 04/10/2019, 08:43 PM
Replies: 7
Views: 223
Posted By cSharp
Re: score not saving on gmx

Considering you're using ini files, set a global 30 minute timer, save every piece of data you've got under that loop.
Forum: Scripting Help 04/10/2019, 10:20 AM
Replies: 8
Views: 265
Posted By cSharp
Re: Dialog caption

May I jump in and add on to this: please use proper naming conventions and do hook functions when making stuff like this.

Why you're using the keyword stock also tickles my brain, you're making...
Forum: Scripting Help 02/10/2019, 10:14 AM
Replies: 3
Views: 163
Posted By cSharp
Re: NPC In Class Selection

I edited my post.

Bare in mind, as long as you don't set the virtual world, everyone will see the NPC.
Forum: Scripting Help 02/10/2019, 10:02 AM
Replies: 3
Views: 163
Posted By cSharp
Re: NPC In Class Selection

I'd suggest using FCNPC unless you'll be -/only/- using playbacks. Read the Wiki on how to control them.

Am example code:
#define PLAYER_NPC_SKIN (95)
#define PLAYER_NPC_BREADTH (0.0)
#define...
Forum: Includes 02/10/2019, 09:43 AM
Replies: 6
[Include] Extended Grenade
Views: 1,697
Posted By cSharp
Re: Extended Grenade

Would be nice to know if you've changed on this.

EDIT: timing is unreal.



Either way, great release, 5 stars from me.
Forum: Scripting Help 01/10/2019, 07:32 PM
Replies: 13
Views: 498
Posted By cSharp
Re: Rounding a number

hah you're retarded :3 OwO
Forum: Scripting Help 01/10/2019, 05:44 PM
Replies: 13
Views: 498
Posted By cSharp
Re: Rounding a number

https://i.imgur.com/MJlcNGD.png


I cannot tell if you're shitposting but... what does your reply help OP? You gave no explanation or example whatsoever, even though this was posted 1 post above...
Forum: Tutorials 01/10/2019, 05:42 PM
Replies: 6
Views: 1,077
Posted By cSharp
Re: Fetch offline player's data (MySQL R41-4)

"me BUT this doesnt screw my db, it never does"

oh little do you know that in real-time performance servers there's gonna be delays because of the massive amount of data being managed, that's...
Forum: Scripting Help 01/10/2019, 04:55 PM
Replies: 13
Views: 498
Posted By cSharp
Re: Rounding a number

Seeing how it's a local variable just to print it out in a message, what's restricting you from using the %f key with a .0 decimal setting?

format( str_text, sizeof str_text, "Esti sigur ca vrei...
Forum: Tutorials 01/10/2019, 04:50 PM
Replies: 6
Views: 1,077
Posted By cSharp
Re: Fetch offline player's data (MySQL R41-4)

cache_get_value_index(0, 1, pAccountName, 128);
cache_get_value_index_int(0, 4, pAdmLvl);
cache_get_value_index_int(0, 5, pBanned);
cache_get_value_index(0, 6, pBanReason, 128);
...
Forum: Tutorials 01/10/2019, 04:41 PM
Replies: 6
Views: 1,077
Posted By cSharp
Re: Fetch offline player's data (MySQL R41-4)

Why would you ever uses indexes over names? Say you in teh future modify your table containing the player data, e.g. going from single-used salts to new salts per password/per player. You'd have to...
Forum: Screenshots and Videos 15/07/2019, 06:30 PM
Replies: 1
Views: 507
Posted By cSharp
Re: Building Base

this is so old nor did u make this.
Forum: Scripting Help 24/05/2019, 09:20 PM
Replies: 4
Views: 302
Posted By cSharp
Re: discord connector | specific channel

Can you elaborate your question?
Forum: Scripting Help 24/05/2019, 08:13 PM
Replies: 8
Views: 355
Posted By cSharp
Re: mysql_tquery doesn't work

Your function is never called. There's no issue with the mysql_tquery function, there's an issue with your code, however.
Forum: Scripting Help 24/05/2019, 04:29 PM
Replies: 4
Views: 178
Posted By cSharp
Re: Help cant access admin cmd 1 if im admin cmd 2

i started crying reading your code so i fixed it for you:

// macros: max definitions
#define MAX_MESSAGE_LENGTH (144)
#define MAX_CHAT_INPUT (128)


// macros: color definitions...
Forum: Scripting Help 24/05/2019, 11:21 AM
Replies: 3
Views: 199
Posted By cSharp
Re: Problems with Register/Login (dini)

dude


ditch y_ini

why are you even using initialization files as a database in 2019?
Showing results 1 to 25 of 82

 

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


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