SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 256
Search took 0.01 seconds.
Search: Posts Made By: SymonClash
Forum: Scripting Help 03/04/2019, 07:50 PM
Replies: 4
Views: 247
Posted By SymonClash
Re: Is there a limit for arrays?

Or just use y_lang and avoid complicate your life. Or this: https://forum.sa-mp.com/showthread.php?t=468821
Forum: Scripting Help 03/04/2019, 12:48 PM
Replies: 2
Views: 168
Posted By SymonClash
Re: Ban/kick problems

I don't understand why people have to complicate their life by adding such useless and repeated checks.

if(gPlayerLogged[playerid] == 0)

You're already checking if the player is connected in...
Forum: Scripting Help 03/04/2019, 12:37 PM
Replies: 11
Views: 385
Posted By SymonClash
Re: Help y_inline mysql in linux

It works as you can see.
Forum: Scripting Help 02/04/2019, 07:23 PM
Replies: 1
Views: 101
Posted By SymonClash
Re: GetVehicleDamageStatus

Panels, doors, lights & tires are ALL integers.

And in this case, as the wheel says, integers should be saved with the %d specifier.

Unless you're saving vehicle health (which is a FLOAT - so...
Forum: Scripting Help 02/04/2019, 12:45 PM
Replies: 13
Views: 606
Posted By SymonClash
Re: Garage not created

You got it, the problem was the mispelling of garageOwnerName. Now it works but there is a problem.

garageOwnerName is saved as "e"
garageVaultMoney as 45

Why? It should be null for both.
Forum: Scripting Help 02/04/2019, 10:34 AM
Replies: 11
Views: 385
Posted By SymonClash
Re: Help y_inline mysql in linux

That's because you're adding an extra specifier where is not needed.

Eg:

VALUES (%d, %d %d), pname, accountid);
Forum: Scripting Help 01/04/2019, 08:03 PM
Replies: 35
Views: 752
Posted By SymonClash
Re: No command works

Try changing your command processor. You're currently using "cmd" (idk what is), try zcmd or izcmd.
Forum: Scripting Help 30/03/2019, 04:41 PM
Replies: 13
Views: 473
Posted By SymonClash
Re: Y_Ini question

So what if i have TotalKills? Do i need to open, read, write and close everytiime the serverstats.ini file on every kill?
Forum: Scripting Help 30/03/2019, 02:00 PM
Replies: 8
Views: 235
Posted By SymonClash
Re: A problem

Nas thank you, i removed the second break and it works, thanks!
Forum: Scripting Help 30/03/2019, 09:49 AM
Replies: 8
Views: 235
Posted By SymonClash
Re: A problem

Thanks but doesn't work.

https://i.ibb.co/kcBTZX6/Immagine.jpg

As you can see, i'm at a random spawnpoint (random spawn), and the textdraw is supposed to show above the radar, but nothing.
...
Forum: Scripting Help 29/03/2019, 11:52 PM
Replies: 8
Views: 235
Posted By SymonClash
Re: A problem

Any example?
Forum: Scripting Help 29/03/2019, 08:26 PM
Replies: 8
Views: 235
Posted By SymonClash
A problem

Can someone tell me why this code doesn't show the SpawnpointTD even if i'm at the spawnpoint?


for(new j; j < MAX_RANDOM_SPAWNS; j++)
{
if(IsPlayerInRangeOfPoint(i, 3, RandomSpawn[j][0],...
Forum: Scripting Help 29/03/2019, 08:08 PM
Replies: 6
Views: 161
Posted By SymonClash
Re: InRangeOfPoint

Thank you.
Forum: Scripting Help 29/03/2019, 04:14 PM
Replies: 6
Views: 161
Posted By SymonClash
Re: InRangeOfPoint

@Lirbo: As i can see you haven't read my post. I don't need a random spawn system (which i have it already), but i just need the IsInRangeOfPoint check.

@Pizzy: What?
Forum: Scripting Help 29/03/2019, 03:02 PM
Replies: 6
Views: 161
Posted By SymonClash
InRangeOfPoint

I need a way to loop through this coordinates and check if the player is in a range of them.


static const Float:RandomSpawn[][4] =
{
{1320.7914,1262.0884,10.8203,357.0813},...
Forum: Scripting Help 29/03/2019, 02:14 PM
Replies: 13
Views: 473
Posted By SymonClash
Re: Y_Ini question

Why do i have to set a tag? And where? Shouldn't the enum handle everything since i save it on OnGameModeExit? And 24 hours have passed.
Forum: Scripting Help 29/03/2019, 09:23 AM
Replies: 5
Views: 296
Posted By SymonClash
Re: Change experience to all players MYSQL

update yourplayerstable set skill_level_name = 0
Forum: Scripting Help 29/03/2019, 08:34 AM
Replies: 13
Views: 473
Posted By SymonClash
Forum: Scripting Help 29/03/2019, 08:24 AM
Replies: 8
Views: 308
Posted By SymonClash
Re: Generate random

Yeah just tried now. Problem is, the generated code is in this way:

-EKS-8TV-0D6-KCA-WMV

It's possible to remove the - at the start of the code?

I need it like this:

EKS-8TV-0D6-KCA-WMV
Forum: Scripting Help 28/03/2019, 08:44 PM
Replies: 8
Views: 308
Posted By SymonClash
Generate random

Hello, i need a function to generate a 16 digit number with some letters too (like vouchers, so in a pair of 4), example:

12AB-56OA-LE12-NH80

I need it with - too.

Thanks to everyone who...
Forum: Scripting Help 28/03/2019, 09:12 AM
Replies: 13
Views: 473
Posted By SymonClash
Re: Y_Ini question

No.

4char
Forum: Scripting Help 27/03/2019, 08:02 PM
Replies: 13
Views: 473
Posted By SymonClash
Re: Y_Ini question

I know the variables are zero by default, my problem is another. It doesn't write anything in the file even if the TotalJoins is 1 or 10 or 200.
Forum: Scripting Help 27/03/2019, 02:49 PM
Replies: 13
Views: 473
Posted By SymonClash
Re: Y_Ini question

Ok, i tried to re-write the code. Now i got this:

Anywhere in the script:


INI:ServerStats[](name[], value[])
{
INI_String("MOTD", ServerInfo[sMOTD], 128);

INI_Int("TotalKills",...
Forum: Scripting Help 27/03/2019, 02:23 PM
Replies: 13
Views: 473
Posted By SymonClash
Re: Y_Ini question

Ok, here is full script.


#define SERVER_INFO_PATH "/server.ini"

new ServerInfo[sInfo];

enum sInfo
{
sMOTD[128],
Forum: Scripting Help 27/03/2019, 11:55 AM
Replies: 13
Views: 473
Posted By SymonClash
Re: Y_Ini question

It's a simple enum.
Showing results 1 to 25 of 256

 

All times are GMT. The time now is 02:14 AM.


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