Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 7,519
» Latest member: ysldeniss
» Forum threads: 2,415
» Forum posts: 12,367
Full Statistics
|
Online Users |
There are currently 509 online users. » 0 Member(s) | 507 Guest(s) Bing, Google
|
|
|
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.
|
|
|
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 &
|
|
|
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
|
|
|
Is this a silly question...? |
Posted by: KILLERDOG - 2024-04-26, 12:12 PM - Forum: Questions and Suggestions
- No Replies
|
 |
First off i would like to say a big hello to you guys and its great to see some old faces returning. I have a bit of a silly question here but i was wondering we have openMP but why oh why do we still need SAMP installed. I thought openMP was taking over from SAMP now that certain SAMP members/founders have decided to abandon the project. Will we ever just have and OpenMP installed and not have SAMP. Thanks for reading my post. Hope to see you guys and girls in game. :)
|
|
|
|