SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 76
Search took 0.00 seconds.
Search: Posts Made By: BaFFyJunior
Forum: Scripting Help 15/05/2020, 07:00 PM
Replies: 10
Views: 275
Posted By BaFFyJunior
Re: CreateActor

I will post whenever and where I want to post. My code had nothing wrong.
Forum: Scripting Help 15/05/2020, 05:52 PM
Replies: 10
Views: 275
Posted By BaFFyJunior
Re: CreateActor

new Actors[2];
Actors[ 0 ] = CreateActor(50, 0.0, 0.0, 0.0, 0.0 );
SetActorPos(Actors[ 0 ], 1934.5509,-1585.6692,13.6406);
SetActorFacingAngle(Actors[ 0 ], 0);...
Forum: Scripting Help 15/05/2020, 05:45 PM
Replies: 16
Views: 308
Posted By BaFFyJunior
Re: error 047: array sizes do not match, or destination array is too small

I already gave you that problem solved in the function above.
Forum: Scripting Help 15/05/2020, 03:06 PM
Replies: 16
Views: 308
Posted By BaFFyJunior
Re: error 047: array sizes do not match, or destination array is too small

stock CreateVehicleEx(ownername[], modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2)
{
new VehID = GetFreeVehicleSlot();
vInfo[VehID][VehicleID] = modelid;
...
Forum: Scripting Help 15/05/2020, 02:23 PM
Replies: 16
Views: 308
Posted By BaFFyJunior
Re: error 047: array sizes do not match, or destination array is too small

Try
stock CreateVehicleEx(ownername[24], modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2)
Forum: Scripting Help 13/05/2020, 07:38 AM
Replies: 14
Views: 267
Posted By BaFFyJunior
Re: Problem mysql

format(PrivCarInfo[slot][PrivCarName], 25, VehicleNames(PrivCarInfo[slot][PrivCarModel] - 400));
Try this in your savevehicle function... Maybe will work. Also, the error says that the model you...
Forum: Scripting Help 12/05/2020, 05:23 PM
Replies: 14
Views: 267
Posted By BaFFyJunior
Re: Problem mysql

Show us the function GetVehicleName.
Forum: Server Support 11/05/2020, 06:35 PM
Replies: 3
Views: 229
Posted By BaFFyJunior
Re: Question about AMX File Size

Maybe many created objects or some big includes?
Forum: Scripting Help 11/05/2020, 03:42 PM
Replies: 4
Views: 111
Posted By BaFFyJunior
Re: Restricting vehicle IDs

If I understood what you are trying to do you could try that:
function IsVehicleForbidden(modelveh) // function to store forbiden vehicle models
{
if(modelveh == 406 || modelveh == 407 ||...
Forum: Scripting Help 10/05/2020, 10:43 AM
Replies: 12
Views: 205
Posted By BaFFyJunior
Re: [ERROR] cache_get_row_int - invalid data type

I was just trying to help, not trying to be somehow :))
Forum: Scripting Help 10/05/2020, 10:40 AM
Replies: 12
Views: 205
Posted By BaFFyJunior
Re: [ERROR] cache_get_row_int - invalid data type

=)) Yeah, of course :)) If he has that version of mysql I should suggest him to update an entire system for 1 problem? :)))
Forum: Scripting Help 10/05/2020, 10:36 AM
Replies: 12
Views: 205
Posted By BaFFyJunior
Re: [ERROR] cache_get_row_int - invalid data type

He could be using mysql r39-6.
Forum: Scripting Help 10/05/2020, 10:01 AM
Replies: 12
Views: 205
Posted By BaFFyJunior
Re: [ERROR] cache_get_row_int - invalid data type

Why don't you use cache_get_field_content?
https://wiki.sa-mp.com/wiki/MySQL/R33#cache_get_field_content_int
https://wiki.sa-mp.com/wiki/MySQL/R33#cache_get_row_int
Show use the lines where you...
Forum: Scripting Help 09/05/2020, 03:11 PM
Replies: 9
Views: 183
Posted By BaFFyJunior
Re: Problem textdraw

Well, for that you have to set a range... for the vehicles. Check what id they are at the enum(for example i have 14 sports cars and 3 saloon, i have 17 cars in total, so the saloon starts a 15 and...
Forum: Scripting Help 09/05/2020, 02:35 PM
Replies: 9
Views: 183
Posted By BaFFyJunior
Re: Problem textdraw

I don't understand what do you mean, but if you want more cars add them here:
new DealerInfo[][DealershipData] = {
{0, 411, 100000, SPORTSCAR},
{1, 522, 100000, SALOONCAR},
//{id, vehicle model,...
Forum: Scripting Help 09/05/2020, 12:27 PM
Replies: 4
Views: 89
Posted By BaFFyJunior
Re: If player attachobject I will takegun

You don't need this:
new gunid [] [] =
{
{"24"},
{"25"},
{"26"}
};
The function I gave you in the command takes the id of the gun the player has and gives him ammo. Just use that command...
Forum: Scripting Help 09/05/2020, 12:18 PM
Replies: 8
Views: 124
Posted By BaFFyJunior
Re: MySQL no active cache issue

LoadAvailableBounties(playerid)
{
new DB_Query[256];
mysql_format(Database, DB_Query, sizeof(DB_Query), "SELECT * FROM `player_bounties`");
mysql_tquery(Database, DB_Query,...
Forum: Scripting Help 09/05/2020, 11:58 AM
Replies: 4
Views: 89
Posted By BaFFyJunior
Re: If player attachobject I will takegun

if(strcmp(cmd, "/takeammo", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerAttachedObject(playerid,348))
{
GivePlayerWeapon(playerid, 24, 128);...
Forum: Scripting Help 09/05/2020, 11:54 AM
Replies: 9
Views: 183
Posted By BaFFyJunior
Re: Problem textdraw

You have to destroy the vehicle and create another one. Make a new variable.
new DealershipVehicle[MAX_PLAYERS];

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid ==...
Forum: Scripting Help 09/05/2020, 09:31 AM
Replies: 2
Views: 52
Posted By BaFFyJunior
Re: preogress2.inc "_RenderBar" Warning?

Go in the include and remove _RenderBar. It says that the symbol is not used. So it is just defined... or you could ignore the warning. Do what you want.
Forum: Scripting Help 08/05/2020, 07:17 PM
Replies: 2
Views: 49
Posted By BaFFyJunior
Re: ┐How i do?

My guess... make a timer to remove them. For example when the player enters that pickup set a timer per player at 10 seconds for example, called just once to hide them.
Forum: Scripting Help 08/05/2020, 11:56 AM
Replies: 3
Views: 93
Posted By BaFFyJunior
Re: Server Online Record has a Problem.(Mysql)

Well, i missunderstood what he meant. If he wanted to stock the maximum players he should make a table in the database. Otherwise do that:
stock ConnectedPlayers()
{
new Connected;
foreach(new...
Forum: Scripting Help 08/05/2020, 08:08 AM
Replies: 3
Views: 93
Posted By BaFFyJunior
Re: Server Online Record has a Problem.(Mysql)

Just create a new table named serverstats and a column named ServerRecord, type integrer... After that update it.
ex: mysql_format(SQL, string, sizeof(string), "UPDATE `serverstats` SET...
Forum: Scripting Help 06/05/2020, 08:18 AM
Replies: 3
Views: 88
Posted By BaFFyJunior
Re: OnPlayerDeath does not work

if(Player[playerid][Team] == 0 && Player[killerid][Team] == 2)
I belive a player can't be in 2 teams at the same time... Use:
if(Player[playerid][Team] == 0 || Player[killerid][Team] == 2)
Forum: Scripting Help 03/05/2020, 02:58 PM
Replies: 2
Views: 83
Posted By BaFFyJunior
Re: Spawning vehicles, Shop system

For shops: under OnGamemodeInit() use: DisableInteriorEnterExits(); After that create your own business system.
For vehicles make a command:
new Vehicle[MAX_PLAYERS];
CMD:veh(playerid,params[])
{...
Showing results 1 to 25 of 76

 

All times are GMT. The time now is 04:46 PM.


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