SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 201
Search took 0.01 seconds.
Search: Posts Made By: Undef1ned
Forum: Scripting Help 22/02/2019, 01:06 PM
Replies: 4
Views: 274
Posted By Undef1ned
Re: Retrieve name from SQL ID

new DB_Query[256], DBResult:Result;
format(DB_Query, sizeof(DB_Query), "SELECT Username FROM Table WHERE UserID = '%d';", GarageInfo[Garageid][garageOwnerID]);
Result = db_query(DbName, DB_Query);...
Forum: Scripting Help 21/02/2019, 05:55 PM
Replies: 1
Views: 177
Posted By Undef1ned
Re: Command problem

Haven't you tried doing this?:


CMD:sellgarage(playerid, params[])
{
new GarageID, price;
if(sscanf(params, "ii", GarageID, price)) return SCM(playerid, COLOR_BELGREEN, " [USAGE]:...
Forum: Filterscripts 21/02/2019, 05:40 PM
Replies: 22
Views: 4,924
Posted By Undef1ned
Re: Player Location Display [v1.0]

It was, you have already corrected it.

Another detail that I think you forgot: you are already running 'CreateTextDraws' in 'OnPlayerConnect', you do not need to create a loop in...
Forum: Filterscripts 21/02/2019, 02:06 PM
Replies: 22
Views: 4,924
Posted By Undef1ned
Re: Player Location Display [v1.0]

You have to fix 'OnPlayerSpawn'.

You also forgot to remove this line: #include "filterscripts/pld/colors.pwn"
Forum: Client Support 21/02/2019, 01:51 PM
Replies: 3
Views: 585
Posted By Undef1ned
Re: Won't open!

I'm running the same version and everything is fine. Try removing 'gta_sa.set' (if the file is already created)

<C:\Users\name\Documents\GTA San Andreas User Files>
Forum: Scripting Help 20/02/2019, 10:43 PM
Replies: 7
Views: 325
Posted By Undef1ned
Re: IsPlayerConnected problem

mysql_format(g_sql, query, sizeof(query), "UPDATE characters SET p_money = '%d' WHERE p_name = '%e'", pData[playerid][pMoney], ReturnName(targetID));

'pData[playerid][pMoney]' should be...
Forum: Filterscripts 20/02/2019, 10:12 PM
Replies: 22
Views: 4,924
Posted By Undef1ned
Re: Player Location Display [v1.0]

Exactly, I don't see any sense in that, the truth is I do not even know why you took the time to do something like that.



All this and many other things more, honestly, your filter script is a...
Forum: Scripting Help 19/02/2019, 01:09 AM
Replies: 31
Views: 1,162
Posted By Undef1ned
Re: How can i restrict players from entering a specific vehicle?

Why so many complications with this issue?


//OnPlayerStateChange
if(newstate == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicleid)...
Forum: Scripting Help 17/02/2019, 10:04 PM
Replies: 31
Views: 1,162
Posted By Undef1ned
Re: How can i restrict players from entering a specific vehicle?

public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new vmodel = GetVehicleModel(GetPlayerVehicleID(playerid));
if(vmodel == 520 &&...
Forum: Scripting Help 24/01/2019, 08:14 PM
Replies: 2
Views: 185
Posted By Undef1ned
Re: help me with arrays

Must be: HouseInfo[i][hExt][1]....
Forum: Maps 19/01/2019, 07:08 PM
Replies: 6
Views: 1,523
Posted By Undef1ned
Forum: Scripting Help 19/01/2019, 12:33 PM
Replies: 10
Views: 623
Posted By Undef1ned
Re: OnPlayerTakeDamage

You must verify if issuerid is a valid player. If it is not a valid player, issuerid will be INVALID_PLAYER_ID "0xFFFF (65536)".
Forum: Scripting Help 18/01/2019, 12:40 AM
Replies: 7
Views: 406
Posted By Undef1ned
Re: Issues with /spectate command

'params []' are parameters.

(playerid, params[])

You can look for tutorials on that here in the forum.
Forum: Scripting Help 17/01/2019, 07:57 PM
Replies: 7
Views: 406
Posted By Undef1ned
Re: Issues with /spectate command

Test it.


CMD:spec(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] <= 0) return SCM(playerid, COLOR_ERROR,"You do not have the required access to execute this command.");

...
Forum: Scripting Help 17/01/2019, 03:26 PM
Replies: 7
Views: 406
Posted By Undef1ned
Re: Issues with /spectate command

Test it.

By the way, in the 'foreach' you must verify if all the 'id' traversed are in 'spectator' mode (variable 'IsSpecing' enabled). Another thing, when using 'foreach' it is not necessary to...
Forum: Server Support 02/01/2019, 10:30 PM
Replies: 6
Views: 1,492
Posted By Undef1ned
Re: Query attack

28/08/2017
Forum: Everything and Nothing 02/01/2019, 01:37 AM
Replies: 30
Views: 2,634
Posted By Undef1ned
Re: Happy New Year! 2019

Happy New Year, may this be a year full of many codes for all! ^^
Forum: Scripting Help 30/12/2018, 02:21 AM
Replies: 12
Views: 381
Posted By Undef1ned
Re: Help ME OUT

The identification of the player in the callback was not defined. Show your complete code (callback)
Forum: Scripting Help 30/12/2018, 01:00 AM
Replies: 4
Views: 202
Posted By Undef1ned
Re: Dying Animation Name

CS_Dead_Guy


ApplyAnimation(playerid, "WUZI", "CS_Dead_Guy", 4.0, 0, 0, 0, 1, 0);
Forum: Scripting Help 30/12/2018, 12:53 AM
Replies: 1
Views: 128
Posted By Undef1ned
Re: help

if(newkeys & KEY_YES)
{
Tolevel(playerid,6);
if(InActAuto[playerid] && ActStatus >= 2) return SendClientMessage(playerid,Red, ".you cant do this in act do /Qact to do this"); ...
Forum: Scripting Help 30/12/2018, 12:42 AM
Replies: 1
Views: 172
Posted By Undef1ned
Re: Pawn Compiler stops working after updating YSI

Have you tried compiling with the previous version of YSI that you had previously, to see if that is really the error?
Forum: Scripting Help 30/12/2018, 12:33 AM
Replies: 2
Views: 219
Posted By Undef1ned
Re: Where can I DL Vice City models?

And what is the difference in downloading them? It will only use the skins.
Forum: Server Support 29/12/2018, 01:25 AM
Replies: 9
Views: 864
Posted By Undef1ned
Re: cheat of vehicles

Maybe, check the positions of the vehicles every second, then check if any of those positions is not equal to the previous ones, and finally check if the vehicle continues to move and has no driver...
Forum: Gamemode Scripts 25/12/2018, 04:58 PM
Replies: 35
Views: 9,445
Posted By Undef1ned
Re: Vice City Emergency Responders [0.3-DL]

What program do you use to create those letters that are in the .txd file? By the way, good job.
Forum: Scripting Help 25/12/2018, 04:16 PM
Replies: 4
Views: 232
Posted By Undef1ned
Re: 2 Errors

From what I see "IgracevInfo" is a global text drawing and it is necessary that it be a text player to be used in that way.

It must be like this:


new PlayerText:IgracevInfo[MAX_PLAYERS][14];...
Showing results 1 to 25 of 201

 

All times are GMT. The time now is 06:58 PM.


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