SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 458
Search took 0.01 seconds.
Search: Posts Made By: xRadical3
Forum: Scripting Help 05/06/2020, 09:20 AM
Replies: 3
Views: 45
Posted By xRadical3
Re: Animation help

ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.1, 0, 0, 0, 0, 0, 1);
Forum: Scripting Help 05/06/2020, 09:08 AM
Replies: 2
Views: 83
Posted By xRadical3
Re: Detecting player's selected dialog

new SelectedFish[MAX_PLAYERS];

//OnDialogResponse
if(dialogid==DIALOG_FISHES)
{
if(!response) return 1;
SelectedFish[playerid] = listitem;
return 1;
}
Forum: Scripting Help 04/06/2020, 09:09 PM
Replies: 2
Views: 64
Posted By xRadical3
Re: How to save all account in samp

for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
{
if(IsPlayerConnected(i)) SaveAccountInfo(i);
}

//or if you have foreach

foreach(new i : Player) SaveAccountInfo(i);
Forum: Scripting Help 04/06/2020, 08:34 PM
Replies: 21
Views: 3,149
Posted By xRadical3
Re: Server mode unknown :S

Your plugins may not be loaded properly.
Don't bump old posts ...
Forum: Scripting Help 04/06/2020, 04:07 PM
Replies: 3
Views: 67
Posted By xRadical3
Re: Show player name to everyone after teleport

new str[128];
format(str, sizeof(str), "%s has teleported to San Fierro Airport (/sfa)", PlayerName(playerid);
SendClientMessageToAll(COLOR_GREEN, str);

stock PlayerName(playerid)
{
new...
Forum: Scripting Help 01/06/2020, 06:25 PM
Replies: 5
Views: 129
Posted By xRadical3
Re: 26 Errors.

If textdraw is Player-textdraws you should use PlayerTextDrawShow()
or is if global textdraw you should use TextDrawShowForPlayer()

https://wiki.sa-mp.com/wiki/Textdraw
Forum: Scripting Help 01/06/2020, 04:21 PM
Replies: 12
Views: 665
Posted By xRadical3
Re: Vehicle Gear.

Use https://forum.sa-mp.com/showthread.php?t=69572
Also don't bump old threads, post new.
Forum: Scripting Help 01/06/2020, 04:18 PM
Replies: 5
Views: 129
Posted By xRadical3
Re: 26 Errors.

Maybe stats[MAX_PLAYERS][15] is not have 'PlayerText' tag.
new PlayerText:stats[MAX_PLAYERS][15];
Also use [PAWN] or [CODE] instead [Quote] for put your code and warnings into a box.
Forum: Scripting Help 01/06/2020, 02:37 PM
Replies: 33
Views: 835
Posted By xRadical3
Re: Data being reset when connecting to server.

Sorry bro but you are a very noob scripter.
I don't think you can succeed in creating a good gamemode.
Why you not use
dini - https://forum.sa-mp.com/showthread.php?t=50
dini2 -...
Forum: Scripting Help 01/06/2020, 11:01 AM
Replies: 3
Views: 91
Posted By xRadical3
Re: Timer for respawning cars...

for(new vehicleid = 1; vehicleid != GetVehiclePoolSize(); vehicleid++)
//replace with
for(new vehicleid = 0; vehicleid != GetVehiclePoolSize(); vehicleid++)

//use this function for check if...
Forum: Scripting Help 31/05/2020, 10:17 AM
Replies: 1
Views: 56
Posted By xRadical3
Re: Spam Dialogs

Show the dialog again when the player buys the item.
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_BUY_GUN)
{
if(response)...
Forum: Scripting Help 29/05/2020, 10:16 PM
Replies: 5
Views: 141
Posted By xRadical3
Re: Y_INI Storing not storing float in OnGameModeInit

Store coords as string and try.
See this example:

INI_Write(AD_FILE, "CP_XYZ", "1267.2631,-1265.8411,13.3806");

//get coords from string with sscanf
new dest[64], Float:x, Float:y, Float:z;...
Forum: Scripting Help 29/05/2020, 12:01 PM
Replies: 2
Views: 97
Posted By xRadical3
Re: count players

See this example:
new TDM_Count = 0; //on top of script

TDM_Count++; //Add 1 to the var
if(TDM_Count == 3) TDM_Count = 1; //If the var is 3, we set it to 1
SetPlayerTeam(playerid, TDM_Count);...
Forum: Scripting Help 28/05/2020, 12:42 AM
Replies: 7
Views: 145
Posted By xRadical3
Re: how can i create ranges?

Add this to your script.
//by Logic_
#define MAX_RANKS (3)
#define MAX_RANK_NAME (32)

enum e_RankingStructure {
e_RankingName[MAX_RANK_NAME],
e_RankingScore,
...
Forum: Scripting Help 28/05/2020, 12:18 AM
Replies: 7
Views: 145
Posted By xRadical3
Re: how can i create ranges?

format(string, sizeof(string), "Rango: %s", g_RankingStructure[ Rank_GetPlayer(playerid) ][e_RankingName]);
Forum: Scripting Help 27/05/2020, 10:55 PM
Replies: 7
Views: 161
Posted By xRadical3
Lightbulb Re: trying to do IsPlayerOnVehicle

Maybe this method will help, I have no other idea.

1) Check if the player is in the vehicle.
2) If he is in a vehicle, save the model and coordinates then destroy the vehicle.
3) Create the...
Forum: Scripting Help 27/05/2020, 10:00 PM
Replies: 7
Views: 161
Posted By xRadical3
Re: trying to do IsPlayerOnVehicle

Check this thread: https://forum.sa-mp.com/showthread.php?t=453546
I think this impossible, What do you want to do?
Forum: Scripting Help 27/05/2020, 01:56 PM
Replies: 2
Views: 62
Posted By xRadical3
Re: Detecting lanes

Did you see this filterscript too?
Https://forum.sa-mp.com/showthread.php?t=575149
Forum: Scripting Help 26/05/2020, 11:38 PM
Replies: 2
Views: 89
Posted By xRadical3
Re: inconsistent return types (array & non-array)

You already did that with switch case and not need IF.
default: string = "N/A";
What's the problem?
Forum: Scripting Help 26/05/2020, 11:06 PM
Replies: 33
Views: 835
Posted By xRadical3
Re: Data being reset when connecting to server.

This post will not help your problem, but I will recommend it to you;
If you are building a new game mode, it is better to use mysql
files to save player data is slow and outdated. ...
Forum: Scripting Help 26/05/2020, 12:13 AM
Replies: 2
Views: 70
Posted By xRadical3
Re: Run time error 4: "Array index out of bounds"

MAX_PLAYER_ATTACHED_OBJECTS is 10, so your array size is 5, and that's why it crashes. Increase the array size to 10.
Forum: Scripting Help 25/05/2020, 10:26 PM
Replies: 16
Views: 298
Posted By xRadical3
Re: From DINI to Y_INI Possible ?

error 017: undefined symbol "dini_Int"
Replace all dini codes from your script with y_ini.

warning 201: redefinition of constant/macro (symbol "isnull(%1)"
Delete #isnull from your script...
Forum: Scripting Help 25/05/2020, 10:01 PM
Replies: 8
Views: 154
Posted By xRadical3
Re: how to make command A to command B

Something like this?

//in gamemode
cmd_a(playerid, params[])
{
CallRemoteFunction("CallCMD_b", "is", playerid); //Calls a public function from the script in which it is used.
return...
Forum: Scripting Help 23/05/2020, 11:57 PM
Replies: 3
Views: 116
Posted By xRadical3
Re: Can you put a SetTimer in a format?

native GetTimerInterval(timerid);
//from TimerFix plugin - https://forum.sa-mp.com/showthread.php?t=650736



stock GetDateAndTimeOfMs(millisecond, &year, &month, &day, &hour, &minute, &second)...
Forum: Scripting Help 23/05/2020, 09:46 PM
Replies: 11
Views: 184
Posted By xRadical3
Re: Pickups not loading from database (only a few)

Check that the information on each pickup is inserted correctly.
Or try this query: SELECT `ID` FROM `pickups`
Showing results 1 to 25 of 458

 

All times are GMT. The time now is 03:29 PM.


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