Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 280 online users. » 0 Member(s) | 278 Guest(s) Bing, Google
|
|
|
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(playerid, params[]) { ? ? new message[100]; ? ? sscanf(params, "s[100]", message); ? ? format(PlayerInfo[playerid][pMessage], 100, message); SaveMessage(playerid); ? ? return 1; } CMD:show(playerid, params[]) { ? ? new string[100]; ? ? if (!strcmp(PlayerInfo[playerid][pMessage], "None", true)) ? ? ? ? ?return SendClientMessage(playerid, COLOR_YELLOW, "No message");
? ? format(string, sizeof string, "%s", PlayerInfo[playerid][pMessage]); ? ? SendClientMessage(playerid, COLOR_WHITE, string); ? ? return 1; } SaveMessage(playerid) { new query[256]; mysql_format(dbCon, query, sizeof(query), "UPDATE `players` SET `MessageText` = '%e' WHERE `ID` = '%d'", PlayerInfo[playerid][pMessage], PlayerInfo[playerid][pSQLID]); mysql_tquery(dbCon, query); return 1; }
/save {F60000}Message {FFFFFF}Message
But its only save Message?Message?
This is what I want
|
|
|
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 and start using library.
Images
|
|
|
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;
}
|
|
|
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
|
|
|
|