Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,496
» Latest member: u888brbrcom
» Forum threads: 2,412
» Forum posts: 12,359

Full Statistics

Online Users
There are currently 928 online users.
» 0 Member(s) | 926 Guest(s)
Bing, Google

Latest Threads
Adding new vehicles and s...
Forum: Programming
Last Post: __.A.__
Yesterday, 07:47 PM
» Replies: 0
» Views: 40
Zona América del Sur Free...
Forum: Advertisements
Last Post: kevinberriosflores
Yesterday, 02:16 PM
» Replies: 1
» Views: 67
Busco copia de gamemode S...
Forum: Spanish/Espa?ol
Last Post: briancristaldo2021
2025-09-11, 11:14 AM
» Replies: 0
» Views: 54
[Tutorial] Registrando o ...
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2025-09-09, 08:36 PM
» Replies: 0
» Views: 194
San Andreas Police Pursui...
Forum: Advertisements
Last Post: BriBri
2025-09-08, 10:09 PM
» Replies: 1
» Views: 277
Problem with plugins load...
Forum: Support
Last Post: MrKacu13
2025-09-08, 07:15 PM
» Replies: 9
» Views: 333
Compilation error
Forum: Pawn Scripting
Last Post: MrKacu13
2025-09-07, 07:18 AM
» Replies: 6
» Views: 335
Need help, problem when i...
Forum: Programming
Last Post: nonickowned
2025-09-06, 06:21 PM
» Replies: 0
» Views: 139
Transfer server from SAMP...
Forum: Support
Last Post: MrKacu13
2025-09-06, 04:03 PM
» Replies: 1
» Views: 231
Not relevant anymore
Forum: Questions and Suggestions
Last Post: peti
2025-09-05, 02:00 PM
» Replies: 0
» Views: 192

 
  How to save message with custom color to database?
Posted by: Zow - 2020-11-06, 06:04 PM - Forum: Pawn Scripting - Replies (7)

PHP Code:
CMD:save(playeridparams[])
{
? ? new 
message[100];
? ? 
sscanf(params"s[100]"message);
? ? 
format(PlayerInfo[playerid][pMessage], 100message);
    
SaveMessage(playerid);
? ? return 
1;
}
CMD:show(playeridparams[])
{
? ? new 
string[100];
? ? if (!
strcmp(PlayerInfo[playerid][pMessage], "None"true))
? ? ? ? ?return 
SendClientMessage(playeridCOLOR_YELLOW"No message");

? ? 
format(stringsizeof string"%s"PlayerInfo[playerid][pMessage]);
? ? 
SendClientMessage(playeridCOLOR_WHITEstring);
? ? return 
1;
}
SaveMessage(playerid)
{
    new 
query[256];
    
mysql_format(dbConquerysizeof(query), "UPDATE `players` SET `MessageText` = '%e' WHERE `ID` = '%d'",
    
PlayerInfo[playerid][pMessage],
    
PlayerInfo[playerid][pSQLID]);
    
mysql_tquery(dbConquery);
    return 
1;


/save {F60000}Message {FFFFFF}Message
But its only save Message?Message?
This is what I want
[Image: unknown.png]


Heart Noob| Hey.
Posted by: Bowner96 - 2020-11-06, 02:42 PM - Forum: General Discussions - Replies (3)

Hey there guys.





So i just got back to PC after a while, i always wanted my SAMP server, now that i have the 'tools' to do so i wanna learn basic scripting and go from there.



Now i know SAMP isnt active as much and isnt 'worth' it, i know. I just wanna learn basic scripting,?test and have fun with my ideas.



I saw this post?and it was very helpfull but i have some questions left. I saw SAMP forums are closed down so even if i see some guides ( thanks to?https://web.archive.org/ ) i cant ask questions or get my help over there.



I dont have any specific questions but i wanna ask if anyone got the time and the patience to help fella noob around ill be thankfull.?



Some questions in mind:



? Can i put all my maps in FilterScript and then load it to the server/gamemode? If so then how? (Please explaing like the noob i am.)

? How do i create dialog?

? ?? Do dialogs can open to other styles of dialog?

? ?? How do i create simple 'Missions' system with dialogs? (Go from checkpoint A to checkpoint B, so on and so on..)

? ?? How i create vehicle spawner with dialog?

? How i give players objects? (Boxes, Wood logs and even a screwdriver)

? How do i create pickup?

? And so many more.



Im looking for dude how can answer my random question with out getting annoyed by my noob lvl. Thanks in advance.



Discord?:?bowner96#5052


  LSRP Players
Posted by: DamjanLOL - 2020-11-06, 01:53 PM - Forum: General Discussions - No Replies

Dear LSRP players.

If you don't play LSRP anymore & you don't plan to return, can you please contact me here via PM?

I'm just looking for some people who have cars/money in LSRP that is willing to gift me their stuff lol :D


  Indonesia Sub Forum
Posted by: Tama - 2020-11-06, 07:42 AM - Forum: Other - No Replies

Karena gak ada yang serius, mari aku buat disini.

Rules simple, share apa yang kamu punya, diskusi apa yang kamu mau, share kode, dll.



Don't be a dick, be respectful to other people.

Ok that's?it, enjoy.


  samp-cctv | Create CCTV with one line! Monitor everything.
Posted by: Mergevos - 2020-11-05, 11:05 PM - Forum: Libraries - Replies (4)

samp-cctv



This library allows you to create CCTV. CCTV stands for closed-circuit television.?



Usage



Code:
CCTV_Create(Float: x, Float: y,? Float: z, Float: rotX, Float: rotY, Float: rotZ, Float: lookX, Float: lookY, Float: lookZ, virtualworld, interiorid)[/align]

[align=center]CCTV_Destroy(cctvid)[/align]

[align=center]CCTV_Watch(playerid, cctvid)[/align]

[align=center]CCTV_Unwatch(playerid, cctvid)

I think the names of these functions are self-explanatory. You either create, watch, destroy or unwatch a specific CCTV.?

For more info, check github.

Installation

Of course, use the modern standards

Code:
sampctl p install Mergevos/samp-cctv[/align]

[align=center]

Then include it
Code:
cctv.inc
and start using library.

Images

[Image: 5RcrewK.jpg]


  Dynamic storage containers
Posted by: EvilShadeZ - 2020-11-05, 08:57 PM - Forum: Questions and Suggestions - Replies (3)

I would like for some kind of dynamic storage container to be implemented such as list. This would be especially beneficial now that we have removed limits for various entity types. It would be quite ridiculous defining enormous arrays to keep track of things.



I imagine it working something similar to how y_iterate was implemented.



Code:
new List:list = List_New();

List_Add(list,value);

List_Remove(list,value);

List_Delete(list);

List_Clear(list);

List_Random(list);

List_Next(...);??

List_Previous(...);

etc...





If different data types could be supported it would be a plus, but integers would be a great start.


  ?????? ?? ?????? ????-????????????
Posted by: ApostolDMITRY - 2020-11-05, 07:38 PM - Forum: Russian/??????? - Replies (2)

? ????? ???? ??????, ????? ??? ?????? ?? ?????. ???? ??????, ? ????? ?? ????-???????????? ? ?????? ?????????? ?? ???. ?????? ? ??? ?????????? ????? ??? ? ????? ?? ???????? ??????????? ????? ????????? ?? ????? ???? ?? ?????, ??????? ????? ????? ??????? ?????????? ????? ? ??.
?? ?????? ?????? ????? ????????? ???????? ??????? ???? ? ?????, ??? ?????? ? ?????? ?????????????? ??????. ?? ? ??????? ??????? ????? ?????.

? ??? ?? ?????? ??????. ?????? ?? open.mp ???????? ?? 64 ?????? ??????? ??? ?????????? 32 ??????.
?????? ??????, ????? ?? ????? ???? ????, ? ????? ?? ?? ??????!


  Problema con un warning.
Posted by: nittro - 2020-11-05, 04:31 PM - Forum: Programaci?n - Replies (2)

?Que quiere decir este warning?



PHP Code:
warning 235: public function lacks forward declaration (symbol "GuardarCuentas"



C?digo.
PHP Code:
public GuardarCuentas()

{

for(new 
i=0;i<MAX_PLAYERS;i)

{

if(
IsPlayerConnected(i))

{

GuardarCuenta(i);

}

}

return 
1;



Exclamation Help with race
Posted by: FeNiixX - 2020-11-05, 07:30 AM - Forum: Pawn Scripting - Replies (8)

Hello everyone, I have the following question ...



How can I achieve that if a player types /enter and if a race is already in progress that the player is put in spectator mode of some user who is in the current race and if he presses enter, specifies another user and so on until that the current race ends and he enters the race ...



The other thing is that if there is no race in progress and the user types /enter the race start and the user enters the race automatically ...





Thanks


  Server crash (INI_AddToBuffer) and Packet was modified problem
Posted by: Godfather - 2020-11-04, 08:58 PM - Forum: Pawn Scripting - No Replies

I have this on online linux server and I'm getting errors for local files which is strange.

I guess he is trying to find .ini file of the user on?OnPlayerDisconnect but fails to process it somehow.

Code:
[debug] Server crashed while executing script.amx
[debug] AMX backtrace:
[debug] #0 00000035 in INI_AddToBuffer (INI:file=52, name[]=@00000000 "", data[]=@01d43894 "0000001600676554") at <unknown file>:0
[debug] #1 000147f0 in ?? (... <13 arguments>) at C:\Users\test\Desktop\sampserver\pawno\include\YSI\y_ini.inc:1076
[debug] #2 00000035 in public OnPlayerDisconnect () at <unknown file>:0


Also other problem that I have sometimes on other server is people get reconnected. Here is an example of the log:

Code:
Packet was modified, sent by id: *id*, ip: *ip*