SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 29
Search took 0.00 seconds.
Search: Posts Made By: OsmanMalagic
Forum: Scripting Help 03/02/2020, 05:26 PM
Replies: 11
Views: 346
Posted By OsmanMalagic
Spray Re: MySQL load vehicles issue

enum cInfo
{
cID, // Unique ID
cCarID, // Real Car ID goes from 1 to 1000 through loop carinfo
cModel,
Float:cLocationx,
Float:cLocationy,
Float:cLocationz,
Float:cAngle,
cColorOne,
Forum: Scripting Help 03/02/2020, 03:16 PM
Replies: 11
Views: 346
Posted By OsmanMalagic
Re: MySQL load vehicles issue

I have 2 variable for vehicles.

First is:
new ownedcar[sizeof(CarInfo)];

Second is when i buy the car

new car = 1;
for(new h = 1; h < sizeof(CarInfo); h++)
{
Forum: Scripting Help 03/02/2020, 11:55 AM
Replies: 8
Views: 153
Posted By OsmanMalagic
Re: string / integer

Do you speak for this:

new Number;
new string[128];

if(Number == 0)
{
format(string, sizeof(string), "Number is none");
SCM(playerid, -1, string);
}
Forum: Scripting Help 03/02/2020, 11:30 AM
Replies: 8
Views: 153
Posted By OsmanMalagic
Re: string / integer

I don't understand what do you mean, you want string to integer or vice versa?
Forum: Scripting Help 03/02/2020, 10:51 AM
Replies: 11
Views: 346
Posted By OsmanMalagic
Re: MySQL load vehicles issue

Again same..
Vehicle ID is 503 not ID 1.




Hm, I loading private vehicles first, then all others, that is not a problem.
I store Vehicle Number into my database and then using that Vehicle...
Forum: Scripting Help 03/02/2020, 08:45 AM
Replies: 1
Views: 100
Posted By OsmanMalagic
Re: Getting cords for /siren

Use texture studio for that, you can attach any object to vehicle.
Forum: Scripting Help 03/02/2020, 08:09 AM
Replies: 2
Views: 76
Posted By OsmanMalagic
Re: VIP Timer Help!

Did you try this ?

if(smonth == 1)//1 month VIP
{
if(lmonth == 1 && lday == 30)//January 30
{
lday = 29; // 29 days
pInfo[targetid][vMonth] = 2;//Making it February...
Forum: Scripting Help 03/02/2020, 06:23 AM
Replies: 5
Views: 192
Posted By OsmanMalagic
Re: Server optimization

My suggestion:

- Optimize your database.
- Fix errors/warnings in server_log.txt and mysql_log.txt...
- Fix bugged/removed fields, tables and queries.
- Remove unnecessary codes from TIMERS.
-...
Forum: Scripting Help 31/01/2020, 09:15 PM
Replies: 11
Views: 346
Posted By OsmanMalagic
Re: MySQL load vehicles issue

If i delete break; Server spawn me 1000 same vehicles in my area, which cause massive lag.
Of course i use new CarInfo[600][cInfo];
My old loading sistem on y_ini going like this

for(new h = 1;...
Forum: Scripting Help 31/01/2020, 08:21 PM
Replies: 11
Views: 346
Posted By OsmanMalagic
Re: MySQL load vehicles issue

Again same..
Vehicle ID is 503 not ID 1.
In my Table on MySQL vehicle ID is 1, but on server it's not.
Forum: Scripting Help 31/01/2020, 12:44 PM
Replies: 11
Views: 346
Posted By OsmanMalagic
MySQL load vehicles issue

Hi guys, i have one issue with my Vehicles.
I created saving system using MySQL but my loading system not working properly.
Vehicle ID must be 1 because the car is private, and ID must go from 1 to...
Forum: Screenshots and Videos 03/05/2019, 02:49 PM
Replies: 0
Views: 1,042
Posted By OsmanMalagic
NooBot Copy - Global Update #1

http://y2u.be/OtGRyv6PrbA
Forum: Screenshots and Videos 03/12/2018, 07:39 PM
Replies: 7
Views: 1,019
Posted By OsmanMalagic
Cool Re: We go to MARS X and Presentation Burger Shot

Mars is limited, so you can not go out of the desert.
You always return to the desert (mars) if you try to get out of it. Players with this limit can not see whether this is a common desert or not :D
Forum: Screenshots and Videos 03/12/2018, 02:42 PM
Replies: 7
Views: 1,019
Posted By OsmanMalagic
Forum: Screenshots and Videos 01/12/2018, 05:55 AM
Replies: 7
Views: 1,019
Posted By OsmanMalagic
We go to MARS X and Presentation Burger Shot

http://revistapesquisa.fapesp.br/wp-content/uploads/2014/07/Marte_marte-3326a2.jpg

Mission Mars
...
Forum: Scripting Help 07/07/2018, 10:48 PM
Replies: 4
Views: 448
Posted By OsmanMalagic
Re: Why label not showing?

First destroy label then create him, that should work try it.
Forum: Scripting Help 15/05/2018, 05:44 PM
Replies: 18
Views: 724
Posted By OsmanMalagic
Re: NPC wont connect

You must use this FCNPC_StartPlayingPlayback(npcid, "driving"); // driving was example, you must set the name of your file.
Forum: Scripting Help 14/05/2018, 06:50 PM
Replies: 1
Views: 255
Posted By OsmanMalagic
Question OnPlayerDeath && ShowPlayerDialog issue

I have some issue with onplayerdeath and showplayerdialog. When i show dialog for killer, killer can leave dialog empty and press ok.I trying on many ways to find solution for fix, but i don't have...
Forum: Scripting Help 02/05/2018, 07:38 PM
Replies: 3
Views: 548
Posted By OsmanMalagic
Re: Function DisableRemoteVehicleCollisions Not work in 0.3.7

I tried this with my friend, the command has been executed like normal, but nothing happened.
I was in the driver's seat as my friend and I hit his vehicle and I did not succeed, I refused..
I...
Forum: Scripting Help 02/05/2018, 05:06 PM
Replies: 3
Views: 548
Posted By OsmanMalagic
Function DisableRemoteVehicleCollisions Not work in 0.3.7

Function DisableRemoteVehicleCollisions not work for me and also for other players.
My vehicle cannot pass through other car
Example of code:

public OnPlayerCommandText(playerid, cmdtext[])
{
...
Forum: Scripting Help 07/10/2017, 09:10 AM
Replies: 10
Views: 787
Posted By OsmanMalagic
Re: Dialog Inputtext

if(dialogid == DIALOG_STREAMBOX)
{
new string[MAX_PLAYERS];
if(response)
{
if(strfind(inputtext, "#", true) != -1) return SCM(playerid, COLOR_GREY, "Not supported!");
...
Forum: Scripting Help 06/10/2017, 02:08 PM
Replies: 36
Views: 2,254
Posted By OsmanMalagic
Re: Detect player when fell at water off

stock IsPlayerInWater(playerid)
{
new anim = GetPlayerAnimationIndex(playerid);
if(anim >= 1538 && anim <= 1542 || anim == 1544 || anim == 1250 || anim == 1062)
{
return 1;
}
return 0;...
Forum: Maps 06/08/2017, 06:08 PM
Replies: 5
Views: 3,454
Posted By OsmanMalagic
NooBot Bank Interior + Exterior

https://www.youtube.com/watch?v=HxXKTDQPmjI

Interior + Exterior
Download here: https://pastebin.com/hETC5N1e
Forum: Scripting Help 02/01/2017, 11:35 PM
Replies: 8
Views: 1,498
Posted By OsmanMalagic
Re: Police siren sound

The topic name is "Police siren sound" and i don't want attach anything, i only want sound.
You sent an example of how to set up the sound of the vehicle using the last parameter, and i send you my...
Forum: Scripting Help 02/01/2017, 11:24 PM
Replies: 8
Views: 1,498
Posted By OsmanMalagic
Re: Police siren sound

I tested again now, and not working.

Here is my code:
http://pastebin.com/Nt92zrjx

There's nothing wrong with him.
And also Include files are upgraded to the new version.
Showing results 1 to 25 of 29

 

All times are GMT. The time now is 11:42 PM.


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