SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 286
Search took 0.01 seconds.
Search: Posts Made By: RedGun2015
Forum: Scripting Help 10/07/2020, 08:39 PM
Replies: 3
Views: 217
Posted By RedGun2015
Re: How can I assign an id to a car?

what do you exactly want to do? You want to check if player X owns car with id Y or what?
Forum: Scripting Help 08/07/2020, 04:55 PM
Replies: 3
Views: 217
Posted By RedGun2015
Re: How can I assign an id to a car?

You can make something like this:


enum Car
{
carOwner
colorOne,
colorTwo,
object1,
oject2,
Forum: Scripting Help 14/06/2020, 06:23 PM
Replies: 6
Views: 204
Posted By RedGun2015
Re: One Plugins only

So, if it crash I don't think its happend because streamer plugin while is not loaded.
Linux: use streamer.so
Windows: use streamer.dll
(you must have the files in plugins folder).

Also, put...
Forum: Scripting Help 14/06/2020, 06:18 PM
Replies: 2
Views: 169
Posted By RedGun2015
Re: Server crashed due to an unknown error

You must think what you have changed recently, probably you did something wrong and you must find where's the problem.

Or have you install a new plugin/include or anything else ?

Advice: Try...
Forum: Scripting Help 14/06/2020, 06:14 PM
Replies: 1
Views: 66
Posted By RedGun2015
Re: error 029: invalid expression, assumed zero

ShowPlayerDialog(playerid,DIALOG_TUNE, DIALOG_STYLE_TABLIST_HEADERS, "DIALIG TITLE", "Available Components", "Install", "Back");



Parameteres:

ShowPlayerDialog(playerid, dialogid, style,...
Forum: Scripting Help 29/05/2020, 01:17 PM
Replies: 1
Views: 73
Posted By RedGun2015
Re: Help put player in vehicle

This is an example, you must create some position in order to create a car, because if you create the same car in the same location some players will be stucked there (only if you are using collision...
Forum: Scripting Help 23/05/2020, 07:39 PM
Replies: 4
Views: 90
Posted By RedGun2015
Re: Reseting something in MySQL

Well, you can use y_timers, how to create and how they work, see this: https://forum.sa-mp.com/showthread.php?t=571044

example:


#include <YSI\y_timers>


// this will check every 10...
Forum: Scripting Help 23/05/2020, 07:11 PM
Replies: 4
Views: 90
Posted By RedGun2015
Re: Reseting something in MySQL

Make a timer and checks if time is 24 PM, if it is, you run a query like this:

stock ResetQuests(quest_id)
{
new query[200];
format(query, sizeof(query), "UPDATE `player_quests` SET...
Forum: Scripting Help 23/05/2020, 07:05 PM
Replies: 1
Views: 80
Posted By RedGun2015
Re: How detect players

stock PlayersAtPoint(Float: x, Float: y, Float: z, Float: distance)
{
new
count = 0,
Float: dist
;

foreach(new i : Player)
{
dist = GetPlayerDistanceFromPoint(i, x, y, z);
Forum: Scripting Help 23/05/2020, 06:15 PM
Replies: 3
Views: 56
Posted By RedGun2015
Re: Question about hour

minute == 30*, sorry.
Forum: Scripting Help 23/05/2020, 06:13 PM
Replies: 9
Views: 153
Posted By RedGun2015
Re: Creating labels in game -> getting error at showing them

debug.

Try print the text:

printf("%s", LabelInfo[id][lText]);


Before CreateDynamic3DTextLabel
Forum: Scripting Help 23/05/2020, 06:11 PM
Replies: 3
Views: 56
Posted By RedGun2015
Re: Question about hour

new hour, second, minute;
gettime(hour, minute, second);

if(hour == 22 && minute == 30)
{
// your code here
}
Forum: Scripting Help 23/05/2020, 05:55 PM
Replies: 9
Views: 153
Posted By RedGun2015
Re: Creating labels in game -> getting error at showing them

Here:



stock LoadServerLabels()
{
new query[200];
// no need to use `labels`.`ID`
// just use `ID`
mysql_tquery(HSQL, "SELECT * FROM `labels` ORDER BY `ID` ASC",...
Forum: Scripting Help 23/05/2020, 05:42 PM
Replies: 11
Views: 236
Posted By RedGun2015
Re: Need help understanding how pwn works

It will do nothing from what i've tested.
I don't really know what the compiler will read.


But, if you want to use a function only to execute some code you can use something like this:

stock...
Forum: Scripting Help 23/05/2020, 05:27 PM
Replies: 11
Views: 236
Posted By RedGun2015
Re: Need help understanding how pwn works

Often many people use 'return' to interrupt a function or to get a value from a variable.


Example (hope you understand):

// creating a function
stock get_player_respectpoints(playerid)
{...
Forum: Scripting Help 23/05/2020, 05:11 PM
Replies: 5
Views: 148
Posted By RedGun2015
Re: tag mismatch here

What are you trying really to do?

What is this?
mysql_format(Database, query2, sizeof(query2), "SELECT * FROM `reports` WHERE `ID` = '%i'", reportid);
new Cache:result =...
Forum: Scripting Help 23/05/2020, 04:57 PM
Replies: 9
Views: 153
Posted By RedGun2015
Re: Creating labels in game -> getting error at showing them

Try this way:


//You should try this method

case DIALOG_CREATELABEL:
{
if(!response) return 1;

new Float: Pos[3];
Forum: Scripting Help 19/05/2020, 06:59 PM
Replies: 3
Views: 106
Posted By RedGun2015
Re: Duplicated

just add this: before strcat.

headstring[0] = (EOS);
string[0] = (EOS);
Forum: Scripting Help 18/05/2020, 03:42 PM
Replies: 2
Views: 151
Posted By RedGun2015
Re: sampcac

https://pastebin.com/CkM5LZ1z
Forum: Scripting Help 18/05/2020, 03:35 PM
Replies: 5
Views: 165
Posted By RedGun2015
Re: Vip Text

Incearca sa creezi obiectul dinamic si sa folosesti EditDynamicObject
Forum: Scripting Help 16/05/2020, 08:00 PM
Replies: 5
Views: 165
Posted By RedGun2015
Re: Vip Text

Atunci arata-mi codul unde incepi sa editezi textul.
Forum: Scripting Help 16/05/2020, 07:24 PM
Replies: 5
Views: 165
Posted By RedGun2015
Re: Vip Text

This is probably because the object is attached to the vehicle. Try using EditObject only if the object is not attached to the vehicle.
Forum: Scripting Help 15/05/2020, 08:50 PM
Replies: 5
Views: 151
Posted By RedGun2015
Re: Driveby

You mean when the driver goes out from the car, the passenger to be removed from the car?

EDIT: This should work now:



new last_car[MAX_PLAYERS]; // create a variable

public...
Forum: Scripting Help 15/05/2020, 08:39 PM
Replies: 2
Views: 90
Posted By RedGun2015
Re: Trailer spawner

You must store into a variable and destroy on OnPlayerDisconnect.

vehicle per-player:

new player_car[MAX_PLAYERS];

CMD:trailer(playerid, params[])
{
new Float:x, Float:y, Float:z,...
Forum: Scripting Help 15/05/2020, 08:31 PM
Replies: 3
Views: 118
Posted By RedGun2015
Re: Help with kick command

Yes I know, but if you want to make a custom function without sscanf.
Like if you make a checks on a player with ID 53 and that player is not connected, you can't use 53 != INVALID_PLAYER_ID, you...
Showing results 1 to 25 of 286

 

All times are GMT. The time now is 12:52 AM.


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