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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 6,639
» Latest member: Olivaconnor
» Forum threads: 2,476
» Forum posts: 12,525

Full Statistics

Online Users
There are currently 259 online users.
» 0 Member(s) | 255 Guest(s)
Yandex, Google, Discord, Bing

Latest Threads
Chat PDF Online – Ask Que...
Forum: Chat
Last Post: Olivaconnor
2 hours ago
» Replies: 0
» Views: 13
Indonesian
Forum: Other
Last Post: 14March
2 hours ago
» Replies: 9
» Views: 18,088
GTA-MULIPLAYER.CZ
Forum: Advertisements
Last Post: xInVinCiBlE
8 hours ago
» Replies: 0
» Views: 27
SS7CMD v1.0.0
Forum: Libraries
Last Post: Saints7
Yesterday, 11:57 AM
» Replies: 2
» Views: 140
open.mp Dashboard
Forum: Chat
Last Post: Xyranaut
Yesterday, 11:52 AM
» Replies: 8
» Views: 360
Gametext styles
Forum: Russian/Русский
Last Post: Nexius
Yesterday, 11:19 AM
» Replies: 2
» Views: 2,547
CZ CNR cops and robbers
Forum: Advertisements
Last Post: Mhmd m
Yesterday, 11:01 AM
» Replies: 0
» Views: 38
MySQL for open.mp
Forum: Plugins
Last Post: Xyranaut
2026-06-01, 09:17 PM
» Replies: 0
» Views: 85
Hosted tab in 2023
Forum: General Discussions
Last Post: Mhmd m
2026-06-01, 06:38 PM
» Replies: 7
» Views: 11,696
FCNPC for open.mp
Forum: Pawn Scripting
Last Post: Nexius
2026-06-01, 12:59 PM
» Replies: 8
» Views: 8,309

 
  PAWN error 028
Posted by: ironsolari - 2024-03-15, 01:37 PM - Forum: Pawn Scripting - Replies (7)

Hi,

I'm trying to build a filterscript into my gamemode, and I'm facing these 4 errors:

Code:
(3762) :error 028: invalid subscript (not an array or too many subscripts): "PlayerData"
(3762) : warning 215: expression has no effect
(3762) : error 001: expected token: ";", but found "]"
(3762) : error 029: invalid expression, assumed zero
(3762) : fatal error 107: too many error messages on one line

Line 3762 is:
Code:
PlayerData[ playerid ][ pUpdateTime ] = SetTimerEx("UpdatePaddy",TIME_UPDATEPADDY,1,"i", playerid);

And these are the enums:
Code:
enum fj
{
pPaddyUsed[MAX_PADDYS] = 0,
pPaddyObject[MAX_PADDYS],
pPaddyProgress[MAX_PADDYS],
pPaddyFillWater[MAX_PADDYS],
Float:pPaddyPosX[MAX_PADDYS],
Float:pPaddyPosY[MAX_PADDYS],
Float:pPaddyPosZ[MAX_PADDYS],
Text3D:pPaddyText[MAX_PADDYS],
/////////////////////////////
pPaddyHarvestUsed[MAX_PADDYS],
pPaddyHarvestObject[MAX_PADDYS],
Float:pPaddyHarvestPosX[MAX_PADDYS],
Float:pPaddyHarvestPosY[MAX_PADDYS],
Float:pPaddyHarvestPosZ[MAX_PADDYS],
Text3D:pPaddyHarvestText[MAX_PADDYS],
/////////////////////////////
pHasHireVehicle,
pVehicleHire,
pTrailerVehicleHire,
pPaddyInTrailer,
Text3D:pTrailerText,
////////////////////////////
pPaddyHarvestInVehicle,
pPaddyHarvestInVehicleObject[5],
////////////////////////////
pUpdateTime,
}

Code:
enum            PlayerData          {

PlayerPassword[ MAX_PASS_LEN ],

PlayerAdmin,
PlayerAdminName[ MAX_PLAYER_NAME ],

PlayerAge,
PlayerGender,

PlayerSkin,
PlayerMoney,
PlayerPhoneNumber,

PlayerBankMoney,
PlayerBankNumber,

PlayerJob,
PlayerFraction,
PlayerFractionRank[ MAX_PLAYER_NAME ],

PlayerKLicense,
PlayerFLicense,

PlayerLPenalty,
PlayerTicket,

PlayerHouseKey,
PlayerVehicleKey,

PlayerBiz,
    PlayerTogReports,
    PlayerVBiz,

PlayerPHour,
PlayerPMinute,
PlayerPSecond,

PlayerWarn,
PlayerBaned,
PlayerJailTime,

Float: PlayerLastX,
Float: PlayerLastY,
Float: PlayerLastZ,
Float: PlayerLastA,

PlayerLastVWorld,
PlayerLastInterior,

WeaponStick,
WeaponKnife,

WeaponColt,
WeaponDeagle,

WeaponShotgun,
WeaponRifle,

bool: NewPlayer,

ClickedPlayer,

UsedItemName[ 128 ],
UsedItemAmount,

Float: PlayerHunger,
Float: PlayerThirst
};

new    PlayerInfo[ MAX_PLAYERS ][ PlayerData ];
Code:
function UpdatePaddy(playerid)
{
for(new i =0;i<MAX_PADDYS;i++)
{
    if(PlayerInfo[playerid][pPaddyUsed][i] == 1)
    {
        if(PlayerInfo[playerid][pPaddyProgress][i] < 100)
{
    /*if(PlayerInfo[playerid][pPaddyProgress][i] > 50)
{
    if(PlayerInfo[playerid][pPaddyFillWater][i] == 0)
    {
    new string[128];
    format(string,sizeof(string),"Paddy Owner %s\nSlot %d\nProgress :%d\nNEED WATER",GetName(playerid),i,PlayerInfo[playerid][pPaddyProgress][i]);
    UpdateDynamic3DTextLabelText(PlayerInfo[playerid][pPaddyText][i],-1,string);
    return 1;
    }
}*/
    PlayerInfo[playerid][pPaddyProgress][i] += 1;
if(PlayerInfo[playerid][pPaddyProgress][i] == 100)
{
new Float:x,Float:y,Float:z;
GetDynamicObjectPos(PlayerInfo[playerid][pPaddyObject][i],x,y,z);
SetDynamicObjectMaterial(PlayerInfo[playerid][pPaddyObject][i], 2, 862, "gta_procdesert", "sm_Agave_bloom");
// MoveDynamicObject(PlayerInfo[playerid][pPaddyObject][i],x,y,z+1,2);
DestroyDynamic3DTextLabel(PlayerInfo[playerid][pPaddyText][i]);
PlayerInfo[playerid][pPaddyText][i]=CreateDynamic3DTextLabel("",-1,x,y,z+2,5.0);
}
new string[128];
    format(string,sizeof(string),"Ültetvény\n %d%",PlayerInfo[playerid][pPaddyProgress][i]);
    UpdateDynamic3DTextLabelText(PlayerInfo[playerid][pPaddyText][i],-1,string);
    if(PlayerInfo[playerid][pPaddyProgress][i] == 100)
{
format(string,sizeof(string),"Ültetvény\n %d%",PlayerInfo[playerid][pPaddyProgress][i]);
    UpdateDynamic3DTextLabelText(PlayerInfo[playerid][pPaddyText][i],-1,string);
}
}
    }
}
return 1;
}

What am I doing wrong?


Information Modular files in open-mp
Posted by: Diihrox - 2024-03-12, 03:14 AM - Forum: Questions and Suggestions - Replies (1)

Good morning/afternoon/evening community.

I need help regarding modularization with the [Open.mp Server] files that come when downloaded from [sa-mp.mp/downloads]. When I do the tests on localhost it works normally, but when I uploaded it to the host, it didn't turn on the server.

Do I need to have any extra configuration to resolve this?
Help me please. Thank you for your attention!


  Help me with this cmd
Posted by: julees - 2024-03-10, 02:05 AM - Forum: Pawn Scripting - Replies (2)

Hi all! i hava problem to make this... 
I have this godcar system and a command to flat the wheels, I want that when the godcar is activated the wheels continue to flat when it self-repairs but can't get it to work

CMD:godcar(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_RED, "You need to be the driver!");
if(Active[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, "Godcar already enabled!");
return 1;
}
TimeFix = SetTimerEx("Fix", 200, true, "i", playerid);
SendClientMessage(playerid, COLOR_WHITE, "Godcar enabled!");
Activado[playerid] =1;
return 1;
}


and this the cmd for the flat wheels

CMD:tires(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_RED, "You need to be the driver!");
{
new panels, doors, lights, tires;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 5);
}
return 1;
}

 
ty for help :D


  SA-MP Spells System
Posted by: itayuss - 2024-03-10, 01:03 AM - Forum: Videos and Screenshots - Replies (1)

[Video: https://www.dailymotion.com/video/k76JONbZ1HSnt1AbR22]

SA-MP Spells System by me


  SA-MP - Skill system
Posted by: itayuss - 2024-03-10, 12:50 AM - Forum: Videos and Screenshots - No Replies

[Video: https://www.dailymotion.com/video/k57wkZoRWV7EzvAaaOs]


Skill system by me


  SA-MP - Mystery box system
Posted by: itayuss - 2024-03-10, 12:48 AM - Forum: Videos and Screenshots - No Replies

[Video: https://www.dailymotion.com/video/k4qMRa83eSmpwoAaaNa]


Mystery Box System opening by me


  Handling.cfg
Posted by: SROmaRSallaKH - 2024-03-09, 06:31 PM - Forum: Support - No Replies

Hello, I have been facing this problem for a very long time, I am trying to modify handling.cfg by many ways and none of them work, I need to know why when I change values in handling.cfg nothing changes at all.


  SA-MP Server crashes
Posted by: LevanBedinashvili - 2024-03-08, 05:29 PM - Forum: Pawn Scripting - Replies (4)

Hello. 
I got low-rp server in georgia. I got 80-150 players every day but i run into this problem everyday for 5-6 times.
My server crashes due this error. 

[20:29:44] [debug] Server crashed while executing new.amx
[20:29:44] [debug] AMX backtrace:
[20:29:44] [debug] #0 00000072 in ?? (105, 99, 111, 100, 101, 32, 109, 97, 105, 110, ... <17 more arguments>) at D:\Genuine Project\pawno\include\float.inc:112
[20:29:44] [debug] #1 00000072 in main () at D:\Genuine Project\pawno\include\float.inc:112



I don't know what to do. Help me, i'm hopeless...

my discord ID: #LevanBedinashvili#3247


Sad SA-MP Server crash
Posted by: LevanBedinashvili - 2024-03-08, 04:36 PM - Forum: Support - No Replies

Hello. 
I got low-rp server in georgia. I got 80-150 players every day but i run into this problem everyday for 5-6 times.
My server crashes due this error. 

[20:29:44] [debug] Server crashed while executing new.amx
[20:29:44] [debug] AMX backtrace:
[20:29:44] [debug] #0 00000072 in ?? (105, 99, 111, 100, 101, 32, 109, 97, 105, 110, ... <17 more arguments>) at D:\Genuine Project\pawno\include\float.inc:112
[20:29:44] [debug] #1 00000072 in main () at D:\Genuine Project\pawno\include\float.inc:112



I don't know what to do. Help me, i'm hopeless...

my discord ID: #LevanBedinashvili#3247


  Qawno
Posted by: N0FeaR - 2024-03-08, 09:47 AM - Forum: Support - No Replies

I accidentally removed compiler options in QAWNO, how do i reset it to default?