SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Kwarde
Forum: Scripting Help 18/09/2020, 02:05 AM
Replies: 8
Views: 78
Posted By Kwarde
Re: MYSQL running 2 tables at the same time

You are using cache functions after sending a threaded query
Forum: Scripting Help 16/09/2020, 02:49 PM
Replies: 12
Views: 197
Posted By Kwarde
Re: IssueKick problem

IssueKick(playerid, adminname[], reason[])
So it expects an integer, string and another string
IssueKick(pID, playerid, reason);
integer, integer, string
Forum: Scripting Help 16/09/2020, 01:57 PM
Replies: 3
Views: 98
Posted By Kwarde
Re: Error after updating YSI to newer version

^ Either that or make sure a_http is included before YSI. y_core_entry.inc (YSI_Core/y_core/y_core_entry.inc) tries to include a_http if HTTP is not yet defined.
Forum: Scripting Help 16/09/2020, 01:54 PM
Replies: 3
Views: 85
Posted By Kwarde
Re: Invalid function or declaration

Here's some more info on how PVars work: https://forum.sa-mp.com/showthread.php?t=571043 --Eg. why are they (relatively[!!]) slow
Forum: Scripting Help 16/09/2020, 01:50 PM
Replies: 2
Views: 70
Posted By Kwarde
Re: Unknown Object (Need Help)

You could just use SelectObject() to make it selectable, and print a message with details of that object.
Forum: Scripting Help 15/09/2020, 07:31 PM
Replies: 7
Views: 189
Posted By Kwarde
Re: how to make the system hungry?

Remove electrical supply. Your system will starve from hunger.

Jokes aside;

May I add another example that shows it a bit more clearly? (People who read this someday that aren't so good in...
Forum: Bug Reports 15/09/2020, 07:19 PM
Replies: 6
Views: 244
Posted By Kwarde
Re: CreateObject and Edit (0.3DL?)

Oh wait a minute, I overlooked it being a game crash, I assumed it to be a server crash.
Anyway, that seems to be related to your client/PC. I just checked with both 0.3.7-R4 (client)+0.3.7-R2...
Forum: Scripting Help 15/09/2020, 01:33 PM
Replies: 1
Views: 88
Posted By Kwarde
Re: Level system

First of all, LevelSystem only holds "level", "ExpNeeded" and "UnlockableItem". You can't add more. Add another array dimension, eg.

const LevelSystem[][E_LEVEL_SYS] = {
{1, 500, 1},
{2,...
Forum: Bug Reports 14/09/2020, 11:07 AM
Replies: 6
Views: 244
Posted By Kwarde
Re: CreateObject and Edit (0.3DL?)

It never does. It tells the number of vehicle models.

What is your exact, full code you're using that produces this bug?
Forum: Everything and Nothing 14/09/2020, 09:33 AM
Replies: 7
Views: 326
Posted By Kwarde
Re: Lucifer

I heard that's a good show yes. Should give it a shot maybe
Forum: Bug Reports 14/09/2020, 09:07 AM
Replies: 1
Views: 114
Posted By Kwarde
Re: Cache (0.3DL)

Check your VirtualStore (X:\Users\YourUser\AppData\Local\VirtualStore , OR %localappdata%\VirtualStore)

If there's Rockstar Games/GTA San Andreas entries and it holds SAMP data (such as that...
Forum: Scripting Help 14/09/2020, 08:24 AM
Replies: 2
Views: 143
Posted By Kwarde
Re: getfactionname function

Little sidenote on that: The pre-processor automatically sets array sizes if you don't define a value.

static const FactionNames[max_factions][32]

could just be

static const FactionNames[][]...
Forum: Scripting Help 13/09/2020, 01:17 PM
Replies: 10
Views: 236
Posted By Kwarde
Re: all details. of error, pls help to fix this...

Probably 214 and 239 (literal string to non-const parameter and possible const argument intended).
You can disable those warnings:

#pragma warning disable 214,239


If you're still getting...
Forum: Scripting Help 12/09/2020, 03:34 PM
Replies: 10
Views: 236
Posted By Kwarde
Re: all details. of error, pls help to fix this...

In order to be able to compile latest YSI library, use community compiler: https://github.com/pawn-lang/compiler/releases
Forum: Scripting Help 11/09/2020, 07:43 PM
Replies: 9
Views: 133
Posted By Kwarde
Re: I get errors :(

""0xFFFF00AA"Type your password below to login."
So you changed it to
""{FFFF00}"Type your password below to login."

Since you closed the string the pre-processor searches for a constant. That...
Forum: Scripting Help 11/09/2020, 07:38 PM
Replies: 4
Views: 139
Posted By Kwarde
Re: why this message is not showing up?

Length of that string (including format specifiers) is 226. Maximum length for client messages is 144 (see: https://wiki.sa-mp.com/wiki/Limits).
Usually when I had a too long message it just...
Forum: Scripting Help 11/09/2020, 07:35 PM
Replies: 4
Views: 153
Posted By Kwarde
Re: which of these is the best police car?

This is personal preference. People who favor LV would prefer LVPD. People who prefer SF probably would like SFPD etc.
Personally I prefer LSPD. Not because I prefer LS (I do, tho) but because it's...
Forum: Scripting Help 11/09/2020, 04:22 PM
Replies: 11
Views: 1,185
Posted By Kwarde
Re: Random choose

Perhaps you don't literally mean "return in front of SelectRandomPlayer();". Because that would mean the function looks like this:

stock SelectRandomPlayer()
{
new random =...
Forum: Scripting Help 11/09/2020, 03:41 PM
Replies: 11
Views: 1,185
Posted By Kwarde
Re: Random choose

Nice bump of an (almost exactly) 8-year-old topic :P
And I wouldn't use return in front of "SelectRandomPlayer();". This would return a compile warning (unreachable code) ánd a "function should...
Forum: Scripting Help 11/09/2020, 02:33 PM
Replies: 3
Views: 134
Posted By Kwarde
Re: Get random player

As shown in the link Hazon provided you cán use Iter_Random. You can still add checks. For example:

GetRandomPlayer()
{
new __id = INVALID_PLAYER_ID;
do
{
__id =...
Forum: Everything and Nothing 11/09/2020, 09:07 AM
Replies: 7
Views: 326
Posted By Kwarde
Re: Lucifer

Another year? They themselves expect it to be done January 2021 (which is just a few months). And I read an article a few days ago that they proceeded faster than expected, so with good luck it might...
Forum: Scripting Help 11/09/2020, 08:49 AM
Replies: 4
Views: 145
Posted By Kwarde
Re: mysql not save

He did. This is from sf-cnr, a couple of formats() include the rest of the query (as you can see, start of the formatted string is a string format specifier and first parameter after the string is...
Forum: Server Support 10/09/2020, 07:26 PM
Replies: 5
Views: 164
Posted By Kwarde
Re: Help please, port forwarding Ziggo modum.

Wait it isn't still like that then?

EDIT:
Appearantly hasn't been for years xD (have been inactive some years). Anyway I could find this:
https://github.com/spmn/sa-mp_masterlist_fix
and...
Forum: Scripting Help 10/09/2020, 03:09 PM
Replies: 9
Views: 135
Posted By Kwarde
Re: SCM is on reapet.

This is happening because the timer keeps checking if vehicle's health is 270 or lower.
Once is 270 or lower it sends the message. The next time VehicleCheckTimer() is called, the health is stíll...
Forum: Scripting Help 08/09/2020, 07:34 AM
Replies: 6
Views: 216
Posted By Kwarde
Re: INSERT INTO error #1064 while executing query

First of all you don't have to insert IDs. MySQL does this already (since hID and bID automatically increment and are primary keys, MySQL'll identify them all automatically.)


MySQL error 1064 is...
Showing results 1 to 25 of 500

 

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


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