| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 7,814
» Latest member: bsmoke178
» Forum threads: 2,366
» Forum posts: 12,257
Full Statistics
|
| Online Users |
There are currently 426 online users. » 1 Member(s) | 423 Guest(s) Google, Bing, bsmoke178
|
| Latest Threads |
[ZA] ZOMBIE APOCALYPSE. ...
Forum: Advertisements
Last Post: AlCapone
11 hours ago
» Replies: 0
» Views: 21
|
Real-time pathfinder, opt...
Forum: Pawn Scripting
Last Post: ejtamovic
Today, 08:46 AM
» Replies: 2
» Views: 251
|
After School Roleplay - G...
Forum: Advertisements
Last Post: cosminupgaming
Yesterday, 09:47 PM
» Replies: 8
» Views: 538
|
🎮 Free SA-MP Server Hosti...
Forum: Chat
Last Post: NoxxeR
Yesterday, 08:30 PM
» Replies: 11
» Views: 668
|
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: cosminupgaming
Yesterday, 12:49 PM
» Replies: 8
» Views: 877
|
Recompiling for x86_64 or...
Forum: General Discussions
Last Post: moayedboukhachem179
2025-12-28, 02:11 PM
» Replies: 1
» Views: 131
|
NoxxeR is back, with vide...
Forum: Videos and Screenshots
Last Post: NoxxeR
2025-12-27, 07:18 PM
» Replies: 1
» Views: 75
|
AntyCheat System [SA-MP/O...
Forum: Filterscripts
Last Post: Pevenaider
2025-12-25, 04:58 PM
» Replies: 9
» Views: 17,764
|
RolePlay Gamemode [WIP]
Forum: Gamemodes
Last Post: su109551
2025-12-24, 10:48 PM
» Replies: 5
» Views: 215
|
Discord Server Unable to ...
Forum: Chat
Last Post: cosminupgaming
2025-12-24, 05:58 PM
» Replies: 0
» Views: 48
|
|
|
| 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.
|
|
|
|
| PlayAudioStreamForPlayer Not Working |
|
Posted by: Grate Maharlika - 2020-10-22, 09:14 AM - Forum: Pawn Scripting
- Replies (2)
|
 |
Why PlayAudioStreamForPlayer is not working on me (im using horizon roleplay script (y_ini) is there anything i should add? What PlayAudioStreamForPlayer plugins or requirements to make it run? It actually works ingame but when it plays now after 2-4 seconds it will stop and if i play again it wont work *(im not using youtube link)
|
|
|
|
|