SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 25
Search took 0.00 seconds.
Search: Posts Made By: cipi89
Forum: Scripting Help 02/08/2020, 02:43 PM
Replies: 7
Views: 215
Posted By cipi89
Re: Every time you log in, the money is 0

Every time player logs you need to reset his default GTA money and set it back to the amount of money you have saved in your database in order for it to be shown on the screen.

Lets say you're...
Forum: Scripting Help 24/07/2020, 05:51 PM
Replies: 4
Views: 252
Posted By cipi89
Re: If vehicle damaged = less pay

As @algorithmically already explained, all you have to do is use logic. You don't need to know all the code to make something, all you need is imagination and logic.

On the rand variable where...
Forum: Scripting Help 08/05/2020, 08:50 PM
Replies: 5
Views: 120
Posted By cipi89
Re: Tons of problems

That is most definitely not the case. Undefined symbols he's getting aren't variables and cannot be defined by "new". Those are obv some sort of functions.

My guess is your script has lack of...
Forum: Scripting Help 08/05/2020, 08:40 PM
Replies: 4
Views: 88
Posted By cipi89
Re: help! dialog buttons are confused

Check if your dialogs are being properly defined.

On top of your script you've probably defined them like this:

#define DIALOGO_PISTOLAS 1
#define DIALOGO_SUBFUSILES 2

Maybe the number is...
Forum: Scripting Help 08/05/2020, 08:11 PM
Replies: 4
Views: 166
Posted By cipi89
Re: weapon config help

No sir I have not touched weapon-config.inc at all.

Also this isn't the whole code I have under the OnPlayerDamage there's bunch of other things, however it DOES NOT matter what is there under...
Forum: Includes 08/05/2020, 10:22 AM
Replies: 852
Views: 191,692
Posted By cipi89
Re: weapon-config.inc - Damage system with many features

When vehicle explodes near players take no damage from explosion or when they catch on fire with this code:

public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
...
Forum: Scripting Help 08/05/2020, 10:19 AM
Replies: 4
Views: 166
Posted By cipi89
Re: weapon config help

if((weapon == WEAPON_CARPARK || weapon == WEAPON_HELIBLADES || weapon == WEAPON_VEHICLE_MINIGUN) && GangTeam[playerid] == 0)


I'm asking about FLAMETHROWER and EXPLOSION which aren't...
Forum: Scripting Help 07/05/2020, 01:38 AM
Replies: 4
Views: 166
Posted By cipi89
weapon config help

When vehicle explodes near players take no damage from explosion or when they catch on fire with this code:

public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
...
Forum: Scripting Help 15/04/2020, 11:37 PM
Replies: 2
Views: 128
Posted By cipi89
Re: Help with random

It works, thanks :)
Forum: Scripting Help 15/04/2020, 10:46 PM
Replies: 2
Views: 128
Posted By cipi89
Help with random

So I want to get 3 randomized numbers in range 0-16, however I wan't them all to be different, I don't want to get same numbers, I'm having trouble figuring it out, brain froze i guess.

EXAMPLE:
...
Forum: Scripting Help 04/02/2020, 01:23 AM
Replies: 3
Views: 170
Posted By cipi89
Re: error 035: argument type mismatch (argument 3)

Thanks for the replies guys, it helped!
Forum: Scripting Help 02/02/2020, 09:15 PM
Replies: 3
Views: 170
Posted By cipi89
error 035: argument type mismatch (argument 3)

I ran into this issue just now and instead of making the script differently I'd first like to know why exactly doesn't this work?

Example code:

new col_str[24], pgpg[10];
format(pgpg, 10,...
Forum: Scripting Help 08/01/2020, 02:00 PM
Replies: 4
Views: 251
Posted By cipi89
Forum: Scripting Help 07/01/2020, 02:50 PM
Replies: 4
Views: 251
Posted By cipi89
Re: Help with mysql

I still need help with code to convert my Y_INI savings to MySQL if anyone can help?

This was my INI code for saving:

stock SaveUserID(playerid)
{
new u = Data[playerid][userid];
new...
Forum: Scripting Help 07/01/2020, 01:15 AM
Replies: 4
Views: 251
Posted By cipi89
Help with mysql

Okay so first of all, I am rookie with mysql and I can't figure the way to set up my database and start working with it.

I've created DB with table called UserIds. I need to have user_Name and...
Forum: Scripting Help 06/01/2020, 10:12 PM
Replies: 7
Views: 267
Posted By cipi89
Re: Clan ID's

I could help you if you're using Y_INI but I don't think thats the case, I still don't have experience with mysql.
I've created fully operational Clan system on my server in y_ini.
Forum: Scripting Help 04/01/2020, 06:19 PM
Replies: 11
Views: 449
Posted By cipi89
Re: Help with highest scores on server

@calisthenics thing is I no longer have time to script and my whole gamemode is in Y_INI, so changing it all to SQL would take time that I do not have, therefor I was looking for faster fixes, If SQL...
Forum: Scripting Help 04/01/2020, 12:46 AM
Replies: 11
Views: 449
Posted By cipi89
Re: Help with highest scores on server

So basically I would have to migrate to mysql in total to use your method?

I've made the code as @Pottus suggested.. But! Sometimes my server crashes and I can't think of why would the function I...
Forum: Scripting Help 03/01/2020, 09:58 PM
Replies: 8
Views: 256
Posted By cipi89
Re: Change server name to server name+stuff

Change to:

new string[100];
format(string, sizeof(string), "hostname %s %s", resetartDesc, hostname);
SendRconCommand(string);
Forum: Scripting Help 03/01/2020, 06:57 PM
Replies: 8
Views: 195
Posted By cipi89
Re: Error Problem

See how all these lines have something in front of '[playerid]':

//sobcheck[playerid] = false;

Szoliban[playerid] = 0;

frekvencia[playerid] = 0;

AdminSzoliban[playerid] = 0;
Forum: Scripting Help 03/01/2020, 06:06 PM
Replies: 2
Views: 136
Posted By cipi89
Re: ShowPlayerDialog

You closed the bracket before you wrote

ShowPlayerDialog(playerid, DIALOG_TOG, DIALOG_STYLE_TABLIST_HEADERS, "Tog", szDialog2, "Selectare", "Anulare");


change your code to this:
...
Forum: Scripting Help 03/01/2020, 06:00 PM
Replies: 1
Views: 92
Posted By cipi89
Re: Random spawn issue

I wouldn't say its impossible however there is much easier way to create your random spawn code.

Simply define as much spawn positions on server as you'd like and put them all in Float array like...
Forum: Scripting Help 03/01/2020, 03:03 PM
Replies: 11
Views: 449
Posted By cipi89
Re: Help with highest scores on server

@Pottus I've tried it the way you proposed before I've made the script I'm using currently, however your explanation does help a lot and yes it would be possible to make it that way but the way I see...
Forum: Scripting Help 03/01/2020, 02:44 AM
Replies: 11
Views: 449
Posted By cipi89
Re: Help with highest scores on server

The only reason I wanted it on 60 seconds timer is to not overwhelm script so much since there's thousands of kills on my server every day and I figured it would most likely cause lag sometimes.

I...
Forum: Scripting Help 03/01/2020, 12:47 AM
Replies: 11
Views: 449
Posted By cipi89
Exclamation Help with highest scores on server

I'm running a deathmatch server and I didn't encounter this issue until today when my server reached more than 1000 registered accounts.

I'm using Ryder's quickSort to get 5 highest scores on...
Showing results 1 to 25 of 25

 

All times are GMT. The time now is 10:50 PM.


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