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: Jefff
Forum: Scripting Help 16/03/2019, 02:48 AM
Replies: 3
Views: 198
Posted By Jefff
Re: unbann with mysql ingame

stock UnbannSelectedPlayer( playername[] )

??
Forum: Scripting Help 08/03/2019, 01:17 AM
Replies: 3
Views: 173
Posted By Jefff
Re: Timer Bug?

Just increase game text time and it should be outside loop

forward StartMap(mode);
public StartMap(mode)
{
new string[4];
switch(mode)
{
case DM:
{
Forum: Scripting Help 23/02/2019, 01:25 AM
Replies: 4
Views: 151
Posted By Jefff
Re: What am I doing wrong here?

You need update globalname after format not before

strcat((Player[playerid][GlobalName][0]='\0',Player[playerid][GlobalName]),inputtext,MAX_PLAYER_NAME);
Forum: Scripting Help 23/02/2019, 01:12 AM
Replies: 4
Views: 151
Posted By Jefff
Re: What am I doing wrong here?

https://wiki.sa-mp.com/wiki/Strval
Forum: Bug Reports 20/02/2019, 08:06 PM
Replies: 6
Views: 2,230
Posted By Jefff
Re: Player automatic AFK when iddle in the truck with attached trailer.

For me its very ugly bug same as sniper rifle god mode
Forum: Bug Reports 15/02/2019, 12:51 AM
Replies: 6
Views: 2,230
Posted By Jefff
Re: Player automatic AFK when iddle in the truck with attached trailer.

If you open some dialog (im using style_list) in truck with trailer player goes afk too, same effect is when player is aiming without moving camera ^^ but who cares about bugs in this game
Forum: Scripting Help 31/01/2019, 12:15 AM
Replies: 11
Views: 481
Posted By Jefff
Re: Empty array

if(Grass[i] != 0 && IsPlayerInRangeOfPoint(...))

or

if(GetPlayerObjectPos(playerid, Grass[i], x, y, z) && IsPlayerInRangeOfPoint(...))

propably first code is better and if you want something...
Forum: Scripting Help 22/01/2019, 06:46 PM
Replies: 4
Views: 172
Posted By Jefff
Re: Issue with sscanf and strcmp

Because VehicleInfo != PlayerInfo
Forum: Scripting Help 13/01/2019, 09:18 PM
Replies: 4
Views: 152
Posted By Jefff
Re: /blockpm (Best way to make it-Structure)

also
new bool:BlockPmID[MAX_PLAYERS][MAX_PLAYERS char];

re-define MAX_PLAYERS to your real server slots instead of 1000 or you can use also bit array
Forum: Scripting Help 11/01/2019, 01:43 AM
Replies: 3
Views: 275
Posted By Jefff
Re: Creating a command with multi parameters

Example for one cmd
COMMAND:admin(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1) SendClientMessage(playerid, COLOR_SYSTEM_ERROR, "[ERRORE]: Non sei autorizzato ad usare questo...
Forum: Scripting Help 27/12/2018, 09:59 PM
Replies: 5
Views: 142
Posted By Jefff
Forum: Scripting Help 27/12/2018, 09:16 PM
Replies: 5
Views: 142
Posted By Jefff
Re: Why isn't this working?

fclose(openedfile); after fwrite
Forum: Scripting Help 26/12/2018, 11:42 PM
Replies: 6
Views: 359
Posted By Jefff
Re: How can I optimize this script?

Its just one line, i think you complicate your life too much

mysql_tquery(SQL, "UPDATE `users` SET `variable2` = `variable2` * 10 WHERE `variableY` >= x");
Forum: Scripting Help 25/12/2018, 02:28 AM
Replies: 8
Views: 236
Posted By Jefff
Re: Sound ID - +REP For Helper

Its video game effect i think, go to pastebin and search sounds list with "names" then search 'effect' part from list
Forum: Scripting Help 22/12/2018, 01:55 AM
Replies: 2
Views: 100
Posted By Jefff
Forum: Plugin Development 13/12/2018, 01:12 AM
Replies: 220
[Plugin] Pawn.RakNet
Views: 90,992
Posted By Jefff
Re: Pawn.RakNet

Is there any chance to get this plugin for windows xp? because i saw its only for windows > 7, halo peoples
Forum: Scripting Help 07/12/2018, 08:41 PM
Replies: 5
Views: 235
Posted By Jefff
Re: How to load random file from folder?

new random_file = random(MAX_EXISTED_FILES);
and create files as 0.txt, 1.txt ... ?
Forum: News and Updates 06/12/2018, 05:53 PM
Replies: 159
Views: 71,012
Posted By Jefff
Re: SA-MP 0.3.7 R3 client update (optional)

Passenger crasher is fixed ? Bad vehicle crasher (Invalid Seat)
Forum: Scripting Help 01/12/2018, 01:23 AM
Replies: 5
Views: 238
Posted By Jefff
Re: [Help] Countdown

Maybe here is problem? xd

inserttime = params[0]/1000;

this part is also cool

return GameTextForPlayer(i, string, 1000, 5); only id 0 will see this
Forum: Scripting Help 01/12/2018, 12:57 AM
Replies: 5
Views: 143
Posted By Jefff
Re: SQLite ID problem

but where is `ID` INTEGER etc? :D what is this db_get_field_int(Result) ? format supports escape strings, you dont need DB_Escape anymore, replace '%s' to '%q'
Forum: Scripting Help 01/12/2018, 12:55 AM
Replies: 5
Views: 143
Posted By Jefff
Re: SQLite ID problem

Show create table and how you adding id
Forum: Scripting Help 01/12/2018, 12:53 AM
Replies: 5
Views: 143
Posted By Jefff
Re: SQLite ID problem

primary key ? auto index id + 1
Forum: Scripting Help 19/11/2018, 09:08 PM
Replies: 4
Views: 195
Posted By Jefff
Re: is it possible to remove the "#" symbol from a string?

strval(inputtext[1]) if it is always this form
Forum: Scripting Help 19/11/2018, 08:03 PM
Replies: 15
Views: 487
Posted By Jefff
Re: How to write \ simbols to mysql?

ReplaceNewline(string[], bool:save = true)
{
new charr = (save) ? '\\' : '|';
for(new i = strlen(string) - 1; i > -1; i--)
if(string[i] == charr && string[i + 1] == 'n')
...
Forum: Scripting Help 19/11/2018, 02:10 AM
Replies: 6
Views: 252
Posted By Jefff
Re: Problem getting variable from MySQL, again

object[h][idTeam] = strval(data);
and error
object[h][idTeam] = AddStaticVehicle(
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 07:07 PM.


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