| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 259 online users. » 0 Member(s) | 257 Guest(s) Google, Bing
|
| Latest Threads |
The size of the output am...
Forum: Questions and Suggestions
Last Post: scandalfive
3 hours ago
» Replies: 0
» Views: 16
|
Слоты
Forum: Russian/???????
Last Post: muck092
3 hours ago
» Replies: 1
» Views: 1,910
|
Garsiono's, Ricardo's, Tr...
Forum: Advertisements
Last Post: drwnrbbt
11 hours ago
» Replies: 0
» Views: 20
|
After School Roleplay [ R...
Forum: Advertisements
Last Post: cosminupgaming
2025-11-29, 09:39 PM
» Replies: 1
» Views: 285
|
Voltage Roleplay [English...
Forum: Advertisements
Last Post: JamesC
2025-11-29, 09:27 PM
» Replies: 0
» Views: 18
|
Vice WRLD Freeroam/RP
Forum: Advertisements
Last Post: pdjumailiev
2025-11-24, 11:30 AM
» Replies: 0
» Views: 98
|
Wanting to Start a RP Ser...
Forum: Chat
Last Post: Wein
2025-11-24, 09:07 AM
» Replies: 1
» Views: 222
|
Help me for creating a fr...
Forum: General Discussions
Last Post: [Rs]VeNoM
2025-11-23, 07:33 AM
» Replies: 0
» Views: 72
|
The server didn't respond...
Forum: Support
Last Post: richboY
2025-11-22, 10:51 AM
» Replies: 0
» Views: 88
|
error when joining server
Forum: Support
Last Post: sanved2008
2025-11-22, 09:02 AM
» Replies: 0
» Views: 96
|
|
|
| UG-MP |
|
Posted by: Ryder Sixz - 2020-12-25, 07:04 PM - Forum: General Discussions
- Replies (6)
|
 |
Well, as many of you know, this mod came out ... Underground MP Opinions? I honestly love the mod. I'm not going to lie to you, but I always hoped it came out sooner. Now what will happen to open-mp?
|
|
|
|
| what's wrong? |
|
Posted by: vandiesel45 - 2020-12-25, 01:13 AM - Forum: Pawn Scripting
- Replies (2)
|
 |
Hi,
I HAVE THIS ERRORS in console:
AFTER UPDATE SSCANF.
(with 2.8.2 all is normal).
Code: [03:05:54] [debug] Long callback execution detected (hang or performance issue)
[03:05:54] [debug] AMX backtrace:
[03:05:54] [debug] #0 00138000 in public SaveServerStuff (SN=2) at D:\Users\Cristi\Desktop\mm\GAMEMODE - [MY WORK]\gamemodes\[color=#c10300][b]xyz.pwn:16029[/b][/color]
[03:05:54] [debug] #1 00096044 in public FIXES_OnGameModeExit ()? at D:\Users\Cristi\Desktop\mm\GAMEMODE - [MY WORK]\gamemodes\xyz.pwn:5642
[03:05:54] [debug] #2 00004a04 in public OnGameModeExit () at D:\Users\Cristi\Desktop\mm\GAMEMODE - [MY WORK]\pawno\include\fixes.inc:6782
this is the code and line:
Code: new str[300], File: ABC = fopen("Server/property.cfg", io_write);
? ? ? ? for (new i = 0; i < sizeof(HouseInfo); i)
? ? ? ? {
? ? ? ? ? ? [color=#c10300][b]format(str, sizeof(str), "%.1f,%.1f,%.1f,%.1f,%.1f,%.1f,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%.1f,%.1f,%d,%d,%.1f,%.1f,%.1f,%.1f,%d,%d,%d,%d,%s,%d\n",[/b][/color]
HouseInfo[i][hEntx],
HouseInfo[i][hEnty],
HouseInfo[i][hEntz],
HouseInfo[i][hExitx],
HouseInfo[i][hExity],
HouseInfo[i][hExitz],
HouseInfo[i][hOwner],
HouseInfo[i][hDrink],
HouseInfo[i][hValue],
HouseInfo[i][hHeal],
HouseInfo[i][hArmour],
HouseInfo[i][hInterior],
HouseInfo[i][hLock],
HouseInfo[i][hOwned],
HouseInfo[i][hTV],
HouseInfo[i][hRent],
HouseInfo[i][hDrugs],
HouseInfo[i][hTakings],
HouseInfo[i][hGun],
HouseInfo[i][hMats],
HouseInfo[i][hLevel],
HouseInfo[i][hEntrancea],
HouseInfo[i][hExita],
HouseInfo[i][hPickup],
HouseInfo[i][hVehModel],
HouseInfo[i][hVehX],
HouseInfo[i][hVehY],
HouseInfo[i][hVehZ],
HouseInfo[i][hVehA],
HouseInfo[i][hVehCol1],
HouseInfo[i][hVehCol2],
HouseInfo[i][hVehLock],
HouseInfo[i][hVehFuel],
HouseInfo[i][hVehLicense],
HouseInfo[i][hVehStatus]);
fwrite(ABC, str);
? ? ? ? }
? ? ? ? fclose(ABC);
|
|
|
|
| Data loading |
|
Posted by: AdamWorkshop - 2020-12-23, 04:35 PM - Forum: Pawn Scripting
- Replies (4)
|
 |
Hi,
I am using a saving system by MySQL. The problem is, that I have multiple tables, in to which data are being saved. Everything works perfectly fine, until I want to load them.
When players connects and enters a correct password, I select all the data from all tables and pass them further into spawning. The problem is, that even that all of these tables and fields, columns are created properly both in the database and stated in the script, the data are not loaded and SQL throws out this error:
Field X does not exist
It is however properly created in the database. Funny part is, that this is only happening to the 2nd and 3rd table. The fields from the first table are being loaded just fine, and so when I move certain fields to the first table, they are excluded from the SQL error and everything works just fine. I am using a MULTI_STATEMENT when selecting these fields from the tables.
For any help, I will be thankful in advance.
|
|
|
|
| Input to long (mysql) |
|
Posted by: Stones - 2020-12-23, 02:03 AM - Forum: Pawn Scripting
- Replies (3)
|
 |
Im trying to create this table if it doesn't exist, just as a backup in the event i some how manage to lose the sql.
I've tried using strcat i've tried looking at?https://www.burgershot.gg/showthread.php?tid=660 and i just get the same message
PHP Code: SetupCharacters()
{
? mysql_tquery(SQL_CONNECTION, "CREATE TABLE IF NOT EXISTS `characters` (? `ID` int(6) NOT NULL AUTO_INCREMENT,? `A_ID` int(6) NOT NULL,? `Name` varchar(34) NOT NULL,? `RegisterIP` varchar(16) NOT NULL,? `RegisterDate` int(12) NOT NULL,? `LatestIP` varchar(16) NOT NULL,? `Tutorial` int(2) NOT NULL,? `Level` int(5) NOT NULL,? `VIP` int(2) NOT NULL,? `Human` int(1) NOT NULL,? `Zombie` int(1) NOT NULL,? `Talent` int(1) NOT NULL,? `XP` int(6) NOT NULL,? `Cash` int(11) NOT NULL,? `Skin` int(3) NOT NULL,? `PosX` float NOT NULL,? `PosY` float NOT NULL,? `PosZ` float NOT NULL,? `VWorld` int(4) NOT NULL,? `Interior` int(2) NOT NULL,? `Age` int(3) NOT NULL,? `Gender` int(2) NOT NULL,? `Kicks` int(5) NOT NULL,? `Muted` int(2) NOT NULL,? `Faction` int(2) NOT NULL,? `Rank` int(2) NOT NULL,? `Health` float NOT NULL,? `Armour` float NOT NULL,? `hEntered` int(5) NOT NULL,? `bEntered` int(5) NOT NULL,? `Vehicles` int(3) NOT NULL,? `Bank` int(12) NOT NULL,? `ExemptIP` int(11) NOT NULL,? `TotalTimePlayed` int(12) NOT NULL,? `OnlinePeriod` int(12) NOT NULL,? `Payday` int(12) NOT NULL,? `LastOnline` int(12) NOT NULL,? `Cuffed` int(1) NOT NULL,? `Spawn` int(1) NOT NULL,? `Jail` int(4) NOT NULL,? `Radio` int(2) NOT NULL,? `RadioFreq` int(4) NOT NULL DEFAULT 27,? `Weapons` varchar(104) NOT NULL DEFAULT '0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0',? `Uniform` int(4) NOT NULL,? `Screwdriver` int(2) NOT NULL,? PRIMARY KEY (`ID`),? UNIQUE KEY `Username` (`Name`),? UNIQUE KEY `ID` (`ID`))");
? return 1;
}
PHP Code: error 075: input line too long (after substitutions)
error 037: invalid string (possibly non-terminated string)
error 017: undefined symbol "CREATE"
error 017: undefined symbol "IF"
fatal error 107: too many error messages on one line
|
|
|
|
Problem with OnPlayerClickTextdraw |
|
Posted by: shane adevaratu - 2020-12-22, 04:37 PM - Forum: Pawn Scripting
- Replies (7)
|
 |
The OnPlayerClickTextdraw function is no longer called.
I use y_hooks in different includes to call this function. The rest of the functions that use y_hooks work,?less this.
Has anyone been through this and solved it, or do you have any idea what it might be?
A few days ago it worked perfectly.?I tried to disable each include that uses this function, or call them in the general public on gamemode, but the problem is still.
|
|
|
|
| Problem with percentage |
|
Posted by: GospodinX - 2020-12-22, 10:32 AM - Forum: Pawn Scripting
- Replies (3)
|
 |
Hi guys
I use percentage for many things in my SA-MP server.(discounts,tax etc),but I have some problems with it.
For "small" numbers it work pretty nice.
Code:
Code: new result = PERCENT*PRICE/100;
printf("Result: %d",result);
First test:
PERCENT: 75
PRICE: 140 000 000
Result:?19100654
Result is ok
Second test:
PERCENT: 75
PRICE: 340 000 000
Result:?-17698038
Result is wrong
Does anyone have idea how I should fix it?
|
|
|
|
| Adding dialog box for event |
|
Posted by: jenab - 2020-12-21, 10:18 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
Hi, I'm new on scripting and sorry if i can't understand everything well.
So my problem is i have this requestevent codes:
Code: if(strcmp(cmd, "/requestevent", true) == 0 || strcmp(cmd, "/re", true) == 0)
{
if(PINFO[playerid][pLevel]<5)return SEM(playerid, "Your level is too low to organize an event.");
if(IsThereEvent)return SEM(playerid, "There is an event already.");
if(HasWanted(playerid)||IsAtjail(playerid)||InSleep[playerid]==1)return SEM(playerid, "You can't request an event right now.");
ShowPlayerDialog(playerid,5010,DIALOG_STYLE_INPUT,"Request an Event","Enter the title of event below","Done","Close");
return 1;
}
And then more codes for dialogs is this:
Code: if(dialogid == 5010)
{
if(!response)return 1;
if(!IsUsingValidHex(inputtext))
{
if(strlen(inputtext)>=21||strlen(inputtext)<=2)return ShowPlayerDialog(playerid,5010,DIALOG_STYLE_INPUT,"{FF0000}* Enter a title between 3 to 20 characters.\n{A9C4E4}Request an Event","Enter the title of event below","Done","Close");
? ? strcpy(ReqTitle[playerid],inputtext,30);
? ? ShowPlayerDialog(playerid, 5011, DIALOG_STYLE_LIST, "Select the type of event", "Duel\nLast Man Standing\nLast Car Standing\nRace\nProtect the VIP\nDice\nPaintball", "Done", "Back");
}
else
{
if(strlen(inputtext)>=29||strlen(inputtext)<=2)return ShowPlayerDialog(playerid,5010,DIALOG_STYLE_INPUT,"{FF0000}* Enter a title between 3 to 28 characters.\n{A9C4E4}Request an Event","Enter the title of event below","Done","Close");
? ? strcpy(ReqTitle[playerid],inputtext,30);
? ? ShowPlayerDialog(playerid, 5011, DIALOG_STYLE_LIST, "Select the type of event", "Duel\nLast Man Standing\nLast Car Standing\nRace\nProtect the VIP\nDice\nPaintball", "Done", "Back");
}
}
if(dialogid == 5011)
{
if(!response){ShowPlayerDialog(playerid,5010,DIALOG_STYLE_INPUT,"Request an Event","Enter the title of event below","Done","Close");return 1;}
ReqType[playerid]=listitem;
ShowInteriorList(playerid);
}
if(dialogid == 5012)
{
if(!response){ShowPlayerDialog(playerid, 5011, DIALOG_STYLE_LIST, "Select the type of event", "Duel\nLast Man Standing\nLast Car Standing\nRace\nProtect the VIP\nDice\nPaintball", "Done", "Back");return 1;}
ReqInt[playerid]=listitem;
ShowPlayerDialog(playerid, 5013, DIALOG_STYLE_INPUT, "Request an Event", "Enter the prize of event below", "Done", "Back");
}
if(dialogid == 5013)
{
if(!response){ShowInteriorList(playerid);return 1;}
new val=strval(inputtext);
if(val<10000||val>1000000)return ShowPlayerDialog(playerid, 5013, DIALOG_STYLE_INPUT, "Request an Event", "{FF0000}* Invalid prize entered.\n{A9C4E4}Enter the prize of event below", "Done", "Back");
ReqPrize[playerid]=val;
? ? ShowPlayerDialog(playerid, 5014, DIALOG_STYLE_INPUT, "Request an Event", "Enter minimum level to join your event below", "Done", "Back");
}
if(dialogid == 5014)
{
if(!response){ShowPlayerDialog(playerid, 5013, DIALOG_STYLE_INPUT, "Request an Event", "Enter the prize of event below", "Done", "Back");return 1;}
new val=strval(inputtext);
if(val<1||val>15)return ShowPlayerDialog(playerid, 5014, DIALOG_STYLE_INPUT, "Request an Event", "{FF0000}* Invalid level entered.\n{A9C4E4}Enter minimum level to join your event below", "Done", "Back");
ReqMinLevel[playerid]=val;
ShowPlayerDialog(playerid, 5015, DIALOG_STYLE_INPUT, "Request an Event", "Enter maximum level to join your event below", "Done", "Back");
}
if(dialogid == 5015)
{
if(!response){ShowPlayerDialog(playerid, 5014, DIALOG_STYLE_INPUT, "Request an Event", "Enter minimum level to join your event below", "Done", "Back");return 1;}
new val=strval(inputtext);
if(val<90||val>200)return ShowPlayerDialog(playerid, 5014, DIALOG_STYLE_INPUT, "Request an Event", "{FF0000}* Invalid level entered.\n{A9C4E4}Enter maximum level to join your event below", "Done", "Back");
ReqMaxLevel[playerid]=val;
ShowPlayerDialog(playerid, 5016, DIALOG_STYLE_INPUT, "Request an Event", "If you want have Event-Helper for help you by organizing, enter their ID or part of their name", "Done", "Back");
}
if(dialogid == 5016)
{
if(!response){ShowPlayerDialog(playerid, 5015, DIALOG_STYLE_INPUT, "Request an Event", "Enter maximum level to join your event below", "Done", "Back");return 1;}
new len=strlen(inputtext), target, msg[300];
if(len>=1)// Entered
{
target = ReturnUser6(inputtext);
if(!IsPlayerConnected(target))return ShowPlayerDialog(playerid, 5016, DIALOG_STYLE_INPUT, "{FF0000}* This player isn't connected.\n{A9C4E4}Request an Event", "If you want have Event-Helper for help you by organizing, enter their ID or part of their name", "Done", "Back");
if(target==playerid)return ShowPlayerDialog(playerid, 5016, DIALOG_STYLE_INPUT, "{FF0000}* You can't be event helper.\n{A9C4E4}Request an Event", "If you want have Event-Helper for help you by organizing, enter their ID or part of their name", "Done", "Back");
? if(HasWanted(target)||IsAtjail(target)||AFK[target]!=0)return ShowPlayerDialog(playerid, 5016, DIALOG_STYLE_INPUT, "{FF0000}* You can't select this player as event helper.\n{A9C4E4}Request an Event", "If you want have Event-Helper for help you by organizing, enter their ID or part of their name", "Done", "Back");
ReqHamkar[playerid]=target;
format(msg, sizeof(msg), "Are these informations correct about your event?\n{A9C4E4}Event Title: %s\n{A9C4E4}Event Prize: $%s\n{A9C4E4}Min-Max level: %d-%d\n{A9C4E4}Event Type: %s\n{A9C4E4}Location: %s\n{A9C4E4}Organizer: %s, Helper: %s", ReqTitle[playerid], FormatNumber(ReqPrize[playerid]), ReqMinLevel[playerid], ReqMaxLevel[playerid], GetEventTypeName(ReqType[playerid]), GetEventInteriorName(ReqType[playerid], ReqInt[playerid]), RPName(playerid), RPName(ReqHamkar[playerid]));
ShowPlayerDialog(playerid, 5017, DIALOG_STYLE_MSGBOX, "Request an Event", msg, "Yes", "No");
}
else// Not entered
{
format(msg, sizeof(msg), "Are these informations correct about your event?\n{A9C4E4}Event Title: %s\n{A9C4E4}Event Prize: $%s\n{A9C4E4}Min-Max level: %d-%d\n{A9C4E4}Event Type: %s\n{A9C4E4}Location: %s\n{A9C4E4}Organizer: %s", ReqTitle[playerid], FormatNumber(ReqPrize[playerid]), ReqMinLevel[playerid], ReqMaxLevel[playerid], GetEventTypeName(ReqType[playerid]), GetEventInteriorName(ReqType[playerid], ReqInt[playerid]), RPName(playerid));
ShowPlayerDialog(playerid, 5017, DIALOG_STYLE_MSGBOX, "Request an Event", msg, "Yes", "No");
}
}
if(dialogid == 5018)
if(dialogid == 5018)
{
if(!response)return 1;
if(ReqHamkar[playerid]!=9999&&!IsPlayerConnected(ReqHamkar[playerid])){ReqHamkar[playerid]=9999;}
if(HasWanted(playerid)||IsAtjail(playerid)||AFK[playerid]!=0||IsThereEvent)return SEM(playerid, "You can't request this event right now.");
? ? if(ReqHamkar[playerid]!=9999){if(HasWanted(ReqHamkar[playerid])||IsAtjail(ReqHamkar[playerid])||AFK[ReqHamkar[playerid]]!=0||IsThereEvent)return SEM(playerid, "You can't request this event right now.");}
? ? if(ReqHamkar[playerid]!=9999){SendEventRequest(playerid, ReqTitle[playerid], ReqPrize[playerid], ReqMinLevel[playerid], ReqMaxLevel[playerid], ReqType[playerid], ReqInt[playerid], ReqHamkar[playerid]);}
? ? if(ReqHamkar[playerid]==9999){SendEventRequest(playerid, ReqTitle[playerid], ReqPrize[playerid], ReqMinLevel[playerid], ReqMaxLevel[playerid], ReqType[playerid], ReqInt[playerid], 9999);}
}
this is the whole code for my event system, now i tried to add another dialog so player can write the rules of event but i couldn't make it. can anyone help me to do that?
|
|
|
|
|