SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 72
Search took 0.01 seconds.
Search: Posts Made By: Rolux
Forum: Includes 14/09/2019, 08:56 AM
Replies: 3
Views: 745
Posted By Rolux
Re: EasyConvert.inc | Converting Variables!

Sorry,but this is pretty useless.
+The float parts are not working.
Forum: Scripting Help 19/06/2019, 06:42 PM
Replies: 4
Views: 195
Posted By Rolux
Re: Concatenating help

strcat is for concatenating two STRING together.

new string[8];
//strcat(string,Waybill[WaybillNumber]); //WRONG,and it should give "error 035: argument type mismatch (argument 2)". Use format:...
Forum: Scripting Help 19/06/2019, 05:46 PM
Replies: 4
Views: 195
Posted By Rolux
Re: Concatenating help

So, Waybill[WaybillNumber] is an integer?
Forum: Scripting Help 03/06/2019, 04:25 AM
Replies: 3
Views: 190
Posted By Rolux
Re: Convert minutes into hours/days

Not it's not.

new playedminutes = 24*60+46;//your variable
new days = (playedminutes / 60) % 24;
new hours = playedminutes / 60 / 24;
new minutes = (playedminutes) % 60;
printf("d:%d h:%d...
Forum: Scripting Help 31/05/2019, 08:21 AM
Replies: 4
Views: 179
Posted By Rolux
Re: Wait 10 Seconds

You don't have to use a timer for that.

new gLastDamage[MAX_PLAYERS];

public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID)
...
Forum: Scripting Help 05/05/2019, 07:51 AM
Replies: 5
Views: 193
Posted By Rolux
Re: Why isn't this MySQL code working?

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

https://wiki.sa-mp.com/wiki/MySQL/R33#cache_get_field_content
Forum: Scripting Help 02/05/2019, 09:06 AM
Replies: 3
Views: 125
Posted By Rolux
Re: Is there an easier way to do this? fread the LAST 20 lines?

fseek has some default parameters,so if I leave it blank it will use them.
native fseek(File: handle, position = 0, seek_whence: whence = seek_start);



and:
if(++lines <= id) continue;
is...
Forum: Scripting Help 02/05/2019, 06:13 AM
Replies: 3
Views: 125
Posted By Rolux
Re: Is there an easier way to do this? fread the LAST 20 lines?

CMD:logs(playerid, params[])
{
new targetid,linesToRead = 20;
if(sscanf(params, "u", targetid)) return SCM(playerid, -1, "USAGE: /logs <user/id>");

new filename[128];
format(filename,...
Forum: Scripting Help 30/04/2019, 07:48 PM
Replies: 8
Views: 196
Posted By Rolux
Re: Tutorial system in array?

return SetTimerEx("OnPlayerTutorialCameraUpdate", TutorialData[0][tutorialInterval] * 1000, false, "ii", playerid, 0);
Forum: Scripting Help 24/04/2019, 05:55 AM
Replies: 9
Views: 226
Posted By Rolux
Re: Problem car

That varibale "l" was unnecessary and you never set it's value,so it was always 0.


forward OnVehiclesLoad();
public OnVehiclesLoad()
{
new results = cache_num_rows();
new strlabel[100];...
Forum: Scripting Help 23/04/2019, 06:04 PM
Replies: 5
Views: 143
Posted By Rolux
Re: /music command with array

new mInfos[ MAX_SONGS ][ mData ] = {

{"Test song", "http://g00gle.com"}
};
Forum: Scripting Help 23/04/2019, 07:57 AM
Replies: 9
Views: 226
Posted By Rolux
Re: Problem car

You shloud format the text before creating the 3dtext.


format(strlabel, sizeof(strlabel), "Vehicle UID: %d\nOwner: %s", PrivCarInfo[l][UID], PrivCarInfo[l][Owner]);...
Forum: Scripting Help 05/01/2019, 01:39 PM
Replies: 11
Views: 381
Posted By Rolux
Re: Help me with mysql R40

Does it give you the same error as before?
Forum: Scripting Help 05/01/2019, 01:24 PM
Replies: 11
Views: 381
Posted By Rolux
Re: Help me with mysql R40

forward Query_LoadCharacter(playerid);
public Query_LoadCharacter(playerid)
{
new rows = cache_num_rows();

if(!rows)
{
printf("[SERVER]: No clans were loaded from the...
Forum: Scripting Help 05/01/2019, 01:10 PM
Replies: 5
Views: 169
Posted By Rolux
Re: OnPlayerDeath gives money

Can you show me your OnPlayerSpawn?
Forum: Scripting Help 05/01/2019, 01:07 PM
Replies: 11
Views: 381
Posted By Rolux
Re: Help me with mysql R40

I meant the one which calls "Query_LoadCharacter".
Forum: Scripting Help 05/01/2019, 01:03 PM
Replies: 5
Views: 169
Posted By Rolux
Re: OnPlayerDeath gives money

Maybe you have GivePlayerMoney(playerid, user.priesmirti[playerid]);

under OnPlayerSpawn.
Forum: Scripting Help 05/01/2019, 12:57 PM
Replies: 11
Views: 381
Posted By Rolux
Re: Help me with mysql R40

Show us your query.
Forum: Scripting Help 06/12/2018, 07:03 PM
Replies: 6
Views: 159
Posted By Rolux
Re: Getting name from dialog

Change "listitem" to "inputtext" in the format function.
Forum: Scripting Help 27/11/2018, 04:30 PM
Replies: 7
Views: 431
Posted By Rolux
Re: How to do this?

new Float:centerX = 0.0;//center of the circle
new Float:centerY = 0.0;//center of the circle

new Float:radius = 3.0;//radius of the circle
new Float:random = frandom(0, 6.28);

new Float: px...
Forum: Scripting Help 19/11/2018, 05:27 AM
Replies: 4
Views: 145
Posted By Rolux
Re: Need help for understanding what the code does

Looks good.
Maybe it's a job for hitmans,so they can blend in.
Forum: Scripting Help 19/11/2018, 05:12 AM
Replies: 6
Views: 274
Posted By Rolux
Re: Problem getting variable from MySQL, again

1.
Why do you load everything as a string?

https://wiki.sa-mp.com/wiki/MySQL/R40#cache_get_value_name_int (https://wiki.sa-mp.com/wiki/MySQL/R40#cache_get_value_index_int)...
Forum: Scripting Help 19/11/2018, 05:06 AM
Replies: 4
Views: 145
Posted By Rolux
Re: Need help for understanding what the code does

Hi!

If you are at the given point it makes you carry some dirty clothes.
I think it's part of a laundy job.
Forum: Scripting Help 15/11/2018, 02:16 PM
Replies: 17
Views: 640
Posted By Rolux
Re: Problem with a... variable? /goto command

Don't listen to that guy.

You are not giving any value to the variable "idJugador",so it's value will be 0.
That causes you to teleport to ID 0.
Forum: Scripting Help 10/11/2018, 07:36 PM
Replies: 2
Views: 137
Posted By Rolux
Re: Coordinates and Command?

CMD:cmds(playerid, params[])
{
new stringer[256];
strcat(stringer, "{F50000}***Basic Commands***\n\n");
strcat(stringer, "{05FF00}/cmds {FFFFFF}- Shows the list of the commands");
...
Showing results 1 to 25 of 72

 

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


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