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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,253
» Latest member: punhetovisk
» Forum threads: 2,377
» Forum posts: 12,290

Full Statistics

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

Latest Threads
Offensive-Core: TDM
Forum: Gamemodes
Last Post: NikitaFoxze
44 minutes ago
» Replies: 3
» Views: 3,617
Art
Forum: Chat
Last Post: Helengrace22
Yesterday, 10:47 AM
» Replies: 1
» Views: 455
Second Generation Rolepla...
Forum: Advertisements
Last Post: JamesT
2025-07-06, 10:28 AM
» Replies: 0
» Views: 21
Servidor RPG profissões
Forum: Advertisements
Last Post: tcharlesmeurer
2025-07-05, 11:35 PM
» Replies: 0
» Views: 21
EVO Anti-Cheat
Forum: Libraries
Last Post: Eduardo_AC
2025-07-05, 11:05 PM
» Replies: 2
» Views: 58
Developer for Hire – Syst...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-07-04, 08:35 AM
» Replies: 0
» Views: 53
Liberty City map
Forum: Pawn Scripting
Last Post: ziyadprogamer
2025-06-28, 04:55 PM
» Replies: 2
» Views: 2,183
GameText styles in open.m...
Forum: Pawn Scripting
Last Post: Miki
2025-06-28, 01:25 PM
» Replies: 1
» Views: 63
Script[gamemodes/gamemode...
Forum: Pawn Scripting
Last Post: Miki
2025-06-27, 05:08 PM
» Replies: 1
» Views: 442
Want to edit my profile n...
Forum: Chat
Last Post: Hera.
2025-06-26, 08:41 PM
» Replies: 1
» Views: 593

 
  timestamp include - i need help
Posted by: justcroatiansamper - 2024-05-10, 02:29 PM - Forum: Pawn Scripting - Replies (1)

Hello, how would it be best to implement timestamp include in this situation? 


Code:
stock CreateLog(FileName[], string[])[/color]
{

    new logstring[256];

    new hour, minute, second, day, month, year;

    gettime(hour, minute, second);

    getdate(day, month, year);

    format(logstring, 256, "[%d.%d.%d - %d:%d:%d] %s\r\n", hour, minute, second, day, month, year, string);

    new File:hFile;

    hFile = fopen(FileName, io_append);

    fwrite(hFile, logstring);

    fclose(hFile);

    return 1;
[color=#000000]}



Link of timestamp:
https://github.com/Agneese-Saini/SA-MP/b...estamp.inc


Thanks :)


  United States Roleplay [40-50 A day] [SA-RP]
Posted by: kayla - 2024-05-10, 12:40 PM - Forum: Advertisements - No Replies

United States Roleplay, formerly known as San Andreas Roleplay backdates to 2008 and holds a large part of SAMPs history having been one of the largest low-medium roleplay servers in existence.
In 2017 the server unfortunately came to a close which left a large gap within the community. United States Roleplay is now back and we're here to stay!

That's right, we're back and this time around the server is being managed by veterans of the community who all share a wide promising vision for the server going forward.
In these unprecedented times, it is important that communities are united and together in this. We look forward to reopening and continuing to make history on the SAMP scene.
For those of you who have never played SARP before, don't worry we've thought about you too. You are entitled to an introductory kit which is automatically assigned to your account upon registration! You won't have to wait around and graft to achieve your goals within our community.
We formally invite you to pave the way with your character here on United States Roleplay.

Join our Discord: https://discord.com/invite/Tkhhqf3hcz
Check out our forums: https://us-rp.com/
Server: samp.us-rp.com:7777


  [English] Tierra Robada Roleplay
Posted by: Vicee - 2024-05-06, 08:57 PM - Forum: Advertisements - Replies (3)

Tierra Robada Roleplay is a Grand Theft Auto San Andreas Multiplayer Heavy Roleplay server located in the County of Tierra Robada, the State of San Andreas, primarily the Town of Bayside, El Quebrados, and its surroundings. This is a community where you have a chance to prosper and become what you have always imagined, of course, success comes with work and effort. The community offers you a wide range of opportunities. We invite you to join us today and to invite your friends to experience the charms of roleplay.

Discord: https://discord.gg/66hxDpCd6g

https://www.youtube.com/watch?v=buTu3vhTiEs&t

https://streamable.com/68elit
People who wish to start playing San Andreas Multiplayer and are in need of help, freely join our discord and send us a message, there is always someone to help our players out!



[Image: UH5oOUg.jpg]
[Image: GhmDbsj.jpg]
[Image: siJIQNQ.jpg]
[Image: xm058dO.jpg]
[Image: agMcHK5.jpg]
[Image: 5Rjq1rN.jpg]
[Image: YIACtFY.jpg]
[Image: YlXL3w7.jpg]
[Image: OZhIBkz.jpg]
[Image: 5Xbl605.jpg]
[Image: Yy5Cbzu.jpg]
[Image: COK04K6.jpg]
[Image: o5Uq5vT.jpg]


Wink Anyone a Idea how i make a Spider Mod script for cars?
Posted by: puschkin420 - 2024-05-05, 11:33 AM - Forum: Pawn Scripting - Replies (1)

Hey friends,

have one question to all developers here, i need a Script, that i can as driver as a car, driving on a wall as a Spider, hope u know what i mean, can u help me please?

Like this, but for SAMP/OMP

[Video: https://www.youtube.com/watch?v=J2_MAf91kBQ]


  Please help me out with a basic job.
Posted by: x3nt1s - 2024-05-03, 07:19 AM - Forum: Pawn Scripting - Replies (3)

Hey guys I know this is dumb but it's just for training myself I just need some help with a basic job I wanna make since I've been struggling to make even simple things as that. If the player enters any Combine Harvester they get a mark on the map for Checkpoint 1 then when they go through it they gotta go through the next 3 checkpoints and by the end they get $50. They could repeat it over and over to get the money.

The XYZ coordinates are:
21.3124,62.0883,3.1172 = Checkpoint 1
13.2968,37.2150,3.1172 = Checkpoint 2
64.9920,-32.5298,0.7534 = Checkpoint 3
72.8307,19.9228,0.6094 = Checkpoint 4

Thanks in advance.


  Convoy Trucking
Posted by: pasztor.mark456 - 2024-05-02, 11:59 PM - Forum: Advertisements - No Replies

Hey, if u wanna be a trucker, come to Convoy Trucking: IP: server.convoytrucking.net:7777


Question How can I resolve this?
Posted by: JR_Junior - 2024-05-01, 09:17 PM - Forum: Pawn Scripting - Replies (1)

Hello, I'm trying to create a function with several parameters in string format, but I don't know how to do it, as it's returning the following error:

Code:
error 067: variable cannot be both a reference and an array (variable "string1")

PHP Code:
new string1[15],string2[15];
stock MyFunction(&string1[15],&string2[15])
{
//Some code
string1 ="Hello";
string2 ="Hello 2";


FIXED!

Just removed the &


  Reverse Roleplay
Posted by: Sizy - 2024-05-01, 02:50 AM - Forum: Advertisements - No Replies

hello im new


  Not receiving damage when player fell onto the ground
Posted by: Sizy - 2024-05-01, 02:49 AM - Forum: Pawn Scripting - Replies (10)

I get this error


Code:
C:\Users\User\Desktop\rsrp\gamemodes\RSRP.pwn(1361) : warning 202: number of arguments does not match definition

C:\Users\User\Desktop\rsrp\gamemodes\RSRP.pwn(1378) : warning 213: tag mismatch




Code:
forward OnPlayerFall(playerid);
forward CalculateDamage(Float:fall_height);

public OnPlayerFall(playerid) {
    new Float:fall_height;
    GetPlayerDistanceFromPoint(playerid, 2.0, 2.0, 2.0, fall_height);

    new damage = CalculateDamage(fall_height);

    // Apply damage to the player
    SetPlayerHealth(playerid, GetPlayerHealth(playerid) - damage);

    // You can also send a message to the player informing them about the damage
    SendClientMessage(playerid, COLOR_RED, "You took damage from the fall!");
    return 1;
}

// Function to calculate damage based on fall height
public CalculateDamage(Float:fall_height) {
    if (fall_height <= 0.0) return 0;
    if (fall_height <= 2.0) return 5; // Minimum damage if fall height is less than or equal to 2 meters
    return (fall_height - 2.0) * 2 + 5; // Damage increases linearly with fall height beyond 2 meters
}



please help to fix


Exclamation Trunk open
Posted by: Kriso37 - 2024-04-27, 03:11 PM - Forum: Pawn Scripting - Replies (1)

[Image: snfJf4c.png]
How to open this trunk like this with code,
i tryed setvehicleparamsex but its half open