Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 434 online users. » 1 Member(s) | 431 Guest(s) Google, Bing, Phoenixx
|
Latest Threads |
Original Godfather
Forum: Pawn Scripting
Last Post: NmE
2 hours ago
» Replies: 3
» Views: 104
|
What would you start?
Forum: Life
Last Post: vuongtrungnu13
Today, 01:55 AM
» Replies: 4
» Views: 9,751
|
People who have one of th...
Forum: Tech
Last Post: vuongtrungnu13
Today, 01:39 AM
» Replies: 2
» Views: 5,130
|
After School Community
Forum: Advertisements
Last Post: cosminupgaming
Yesterday, 12:42 PM
» Replies: 0
» Views: 59
|
[SDK] SDK C++ MODERNO
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
Yesterday, 02:18 AM
» Replies: 0
» Views: 25
|
[SDK] SDK C++ MODERN
Forum: Tech
Last Post: Crazy_ArKzX
Yesterday, 02:17 AM
» Replies: 0
» Views: 30
|
Need assistance
Forum: Pawn Scripting
Last Post: Cappsy
2025-10-18, 02:29 AM
» Replies: 1
» Views: 67
|
Magyar
Forum: Hungarian/Magyar
Last Post: Cappsy
2025-10-18, 02:19 AM
» Replies: 33
» Views: 62,876
|
United Gaming Life Rolepl...
Forum: Advertisements
Last Post: Cruncher
2025-10-17, 08:33 PM
» Replies: 1
» Views: 423
|
Tierra Robada Roleplay [E...
Forum: Advertisements
Last Post: Vicee
2025-10-14, 04:00 PM
» Replies: 0
» Views: 83
|
|
|
Beware |
Posted by: Limitless - 2020-10-25, 05:23 AM - Forum: Chat
- Replies (4)
|
 |
Ahh Jeez, Someone offered me a free host, his windows server. So I transferred my files, server went good, and SUDDENLY- this guy locked the host and stole my script, discord template, deleted accounts and s***.
So EVERYONE, don't trust a guy called Bonamiice#7125 on discord, dont trust him, he stole everything from us, and also his discord server used the FiveM Limitless Roleplay Image, which has copyright claims... Stay Safe!
|
|
|
Problem with a fuel system when car respawn ... |
Posted by: DaZzY - 2020-10-24, 11:19 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
Hello ,?
I make a fuel system on my GM?
but i get a little problem when a vehicle unoccuppied respawn the fuel do not reset?
example when player leave a car with ?40 % of fuel and car respawn so car not respawn with 100 % of fuel ...
I don't know how to solve that
what a callback i must to use ?
|
|
|
Error with TextDrawSetString ?? |
Posted by: DaZzY - 2020-10-24, 04:12 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
Hello i want to create a TD of FUEL And i get error when i use?TextDrawSetString?
Quote:C:\Users\user\Desktop\Samp\samp server\gamemodes\SFUD.pwn(5445) : error 029: invalid expression, assumed zero
C:\Users\user\Desktop\Samp\samp server\gamemodes\SFUD.pwn(5445) : warning 215: expression has no effect
C:\Users\user\Desktop\Samp\samp server\gamemodes\SFUD.pwn(5445) : error 001: expected token: ";", but found "]"
C:\Users\user\Desktop\Samp\samp server\gamemodes\SFUD.pwn(5445) : error 029: invalid expression, assumed zero
C:\Users\user\Desktop\Samp\samp server\gamemodes\SFUD.pwn(5445) : fatal error 107: too many error messages on one line
This is on Gamemodeini :
Quote:g_Player[playerid][td_fuel] = CreatePlayerTextDraw(playerid,45.000000,324.000000,"Fuel: 100");
? ? PlayerTextDrawBackgroundColor(playerid,g_Player[playerid][td_fuel],0x00000033);
? ? PlayerTextDrawFont(playerid,g_Player[playerid][td_fuel],3); /
? ? PlayerTextDrawLetterSize(playerid,g_Player[playerid][td_fuel],0.699999,1.700000);
? ? PlayerTextDrawColor(playerid,g_Player[playerid][td_fuel],0x000000ff);
? ? TextDrawSetShadow(playerid,g_Player[playerid][td_fuel],3);
Quote:public timer_fuel_lower()
{
? ? for(new i=0;i<MAX_PLAYERS;i) { //
? ? ? ? if (isrefuelling[i]) continue; //
? ? ? ? new vid = GetPlayerVehicleID(i); //
? ? ? ? if (GetPlayerVehicleSeat(i) == 0) { //
? ? ? ? ? ? fuel[vid] = fuel[vid] -1; //
? ? ? ? ? ? if (fuel[vid]<1) //
? ? ? ? ? ? {
? ? ? ? ? ? ? ? fuel[vid] = 0; //
? ? ? ? ? ? ? ? RemovePlayerFromVehicle(i); //
? ? ? ? ? ? ? ? GameTextForPlayer(i,"~r~You are out of ~w~fuel~r~!",5000,4); //
? ? ? ? ? ? }
? ? ? ? }
? ? ? ?
? ? ? ? new tdstring[32];
? ? ? ?format(tdstring,sizeof tdstring,"Fuel:%i",fuel[vid]);
? ? ? ? TextDrawSetString([td_fuel][i], tdstring); < Line 5445
? ? }
}
Whats wrong please ??
|
|
|
Help with Custom Weapon Names |
Posted by: RoBy41 - 2020-10-23, 02:08 PM - Forum: Pawn Scripting
- Replies (5)
|
 |
Lately I noticed that Roleplay servers scripts allow weapons with the same ID (for example, a Deagle) to be stored in a player's inventory under different names. For example, if a player (from Grove Street Families)?has a Deagle on him, if he does /inventory (hypothetically), instead of Deagle, the weapon's name is ''Glock''. Also, let's say there is another player (from Ballas) that has a Deagle on him. But in this case, the weapon's name?(Deagle) can be another weapon name other than Glock (that the first player has), for example, when the second player does /inventory, the name of the Deagle is ''Beretta''.
How can you do that?
|
|
|
Scriptfiles created with fopen(File: file, io_append), gets deleted |
Posted by: Mergevos - 2020-10-22, 09:40 PM - Forum: Pawn Scripting
- No Replies
|
 |
As the title says, files created with io_append gets deleted everytime server (re)starts?up again.?
Code is this function:?https://github.com/Mergevos/samp-logging/blob/master/logging.inc#L182
File gets created, and all of the content is written into, but when server starts again, it gets deleted.
|
|
|
|