Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Ridwan Rz

#1
Quote from: Luisterr on Aug 31, 2024, 05:34 PMThis is a weird issue i don't know why it is happening can you all help me with this problem? i played vcmp before but now i'm getting this problem not before i even tried reinstalling the game and vcmp but nothing changed it is still the same problem. please help me i want some nostalgia by playing vcmp.
When I Try to join a server nothing happens and game doesn't open

Your GTAVC.exe has probably some probs, try to download again with new one and install it
#2
Community Plugins / Re: Discord Plugin
Aug 15, 2024, 03:25 AM
Person who created this plugin, is no longer supporting it OR fixing it. The problem is from sleepydiscord.
#3
Quote from: 2b2ttianxiu on Jul 16, 2024, 07:59 AMDo u have discord? give me ur discord.
Yes, here: ridwanrz
#4
Is this updated for 0.4.7?
#5
Quote from: 2b2ttianxiu on Jul 13, 2024, 08:22 AMI want to make a websocket to connect my master server

But I build has some error
about LNK2001 curl

have you downloaded curl and build curl to get lib?
#6
Finally an update! thanks AdTec :)  :)
#7
Support / Re: Help needed
Jul 06, 2024, 11:28 AM
Reinstall everything.
#8
Community Plugins / Re: logfile maker
Sep 25, 2023, 03:37 AM
Seems the plugin doesn't work anymore. Code 126 ERROR.
#9
Community Plugins / Re: Console Color Plugin
Aug 29, 2023, 06:15 AM
Quote from: habi on Jun 29, 2023, 11:26 PMUpdate
Fallback function 'hprint' added.
This function is aimed at Windows systems which do not support ANSI Color code.

Usage
hprint(cBLUE,"This text is colored.")

Again 7+1 color constants cBLUE, cGREEN, cYELLOW, cRED, cMAGENTA, cCYAN, cWHITE, cBOLD available.

Use +cBOLD for intensity.
hprint( cCYAN + cBOLD, "This is variation of cyan color")

Remark: This is based on the WINAPI function 'SetConsoleTextAttribute'. The first parameter of 'hprint' is passed as wAttributes to this function. So you may use various values of the latter for changing background color etc.

Binaries updated in first post.

Source of 'hprint':
SQInteger fn_hprint(HSQUIRRELVM v)
{
    const SQChar* text; SQInteger wattributes;
    sq->getinteger(v, 2, &wattributes);
    sq->getstring(v, 3, &text);

#ifdef WIN32
    //Credits: https://bitbucket.org/stormeus/0.4-squirrel/src/master/ConsoleUtils.cpp
    HANDLE hstdout = GetStdHandle(STD_OUTPUT_HANDLE);

    CONSOLE_SCREEN_BUFFER_INFO csbBefore;
    GetConsoleScreenBufferInfo(hstdout, &csbBefore);
    SetConsoleTextAttribute(hstdout, wattributes);
    fputs(text, stdout);
    SetConsoleTextAttribute(hstdout, csbBefore.wAttributes);
#else
   
    printf("%c[%s%sm%s%c[0m", 27, (wattributes&8)==8?"1;":"", getANSIColorCode(wattributes&(~8)), text, 27);

#endif
    return 0;
}
and the function used:
const char* getANSIColorCode(int i)
{
    switch (i)
    {
    case 1:  return "34";
    case 2: return "32";
    case 3: return "36";//cyan
    case 4: return "31";//red
    case 5: return "35";//magenta
    case 6: return "33";//yellow
    case 7: return "37";//white
    default: return "";
    }
}

can you help me out here?

I did like this:
hprint( cCYAN + cBOLD, "This is variation of cyan color "+ cYELLOW + cBOLD +"Yellow");
Output was: This is variation of cyan color 68Yellow

the yellow text is not a yellow colour yet
#10
Community Plugins / Re: Console Color Plugin
Aug 28, 2023, 07:10 PM
Why I didn't came across this? I also talked about this to you on discord! You're amazing habi! Well done!
#11
Community Plugins / Re: New curl plugin
Aug 18, 2023, 04:27 AM
A Noob Question: What can you do with this?
#12
Quote from: Malik GT on Jul 07, 2023, 05:37 PMsir its not work can you tell me on discord Malik GT #6646 or any social media because i want this on my server pls reply fast

Thank you

Open a different thread and post the problem. and also that discord plugin kinda outdated, so I don't know if it's gonna work again. I suggest you to check Aroli's ADiscord.
#13
Quote from: Yuriitwo on Aug 04, 2023, 10:09 AMThe error occurred because the variable 'cp' is directly receiving the text of the checkpoint (the command 'local cp = text;' is assigning 'text' directly to the variable 'cp'). However, to remove a checkpoint, you need the checkpoint object that was created earlier, not the string with the representation of the 'CreateCheckpoint' command.


Thank you @Yuriitwo That is a perfect explanation for me to understand what I did incorrectly and wrong. Thank you again.
#14
Hey there, The idea was to add checkpoints temporarily and removing them if the placement is not correct, so that I can understand where I'm putting while I'm mapping.

So far I'm using this:
else if ( cmd == "addcp")
{
  local PosX      = player.Pos.x;
  local PosY      = player.Pos.y;
  local PosZ      = player.Pos.z;
  local newline;
   
  CreateCheckpoint(null, 1, true, Vector(PosX.tofloat() , PosY.tofloat() , PosZ.tofloat()), ARGB(255,255,255,255), 2);
  MessagePlayer("[#FFFFFF]Check point has been created.!", player);
  MessagePlayer("CreateCheckpoint(null, 1, true, Vector("+ PosX.tofloat() +", " + PosY.tofloat() + ", "+ PosZ.tofloat() +", ARGB(255,255,255,255), 2);", player);
  print("CHECKPOINT: " + PosX + ", " + PosY + ", " + PosZ);
       
  newline = "CreateCheckpoint(null, 1, true, Vector("+ PosX.tofloat() +", " + PosY.tofloat() + ", "+ PosZ.tofloat() +", ARGB(255,255,255,255), 2); \n";

   local f = file("savedcp.txt","a+");
   foreach (c in newline)
   f.writen(c, 'b');
   f.close();
}
else if ( cmd == "delcp")
{
  if (text)
  {
    local cp = text;
    cp.Remove()
    MessagePlayer("[#FFFFFF]Check point has been removed!", player);
  }
  else
  {
    MessagePlayer("[#FFFFFF]write something to remove cp!", player);
  }
}


So the thing is I copy the CreateCheckpoint whole created function from /addcp and paste it on /delcp (pasting the checkpoint).

So I'm not sure I'm not doing it correctly. I know I'm not that good at scripting but trying to learn.

I can add perfectly but it's not deleting anything using /delcp.

The ERROR on console:
AN ERROR HAS OCCURED [the index 'Remove' does not exist]
CALLSTACK
*FUNCTION [onCommand()] scripts/_MapperSystem.nut line [566]
*FUNCTION [onPlayerCommand()] scripts/main.nut line [1961]
LOCALS
[cp] "CreateCheckpoint(null, 1, true, Vector(-1730.41, -154.432, 14.9084, ARGB(255,255,255,255), 2);"
[text] "CreateCheckpoint(null, 1, true, Vector(-1730.41, -154.432, 14.9084, ARGB(255,255,255,255), 2);"
[cmd] "delcp"
[player] INSTANCE
[this] TABLE
[text] "CreateCheckpoint(null, 1, true, Vector(-1730.41, -154.432, 14.9084, ARGB(255,255,255,255), 2);"
[cmd] "delcp"
[player] INSTANCE
[this] TABLE
#15
Quote from: habi on Aug 03, 2023, 09:44 AMStream.WriteByte(100);
Stream.WriteString("www.google.com");
Stream.SendStream(player);
Are you using blank server?
//store/script/main.nut
function Server::ServerData(stream)
{
...
case 100: local link= stream.ReadString();
::System.SetClipboardText(link);
break;
}

that's exactly thing I was looking for, thanks man! I thought it was server-side, but turned to be client side, which I have zero knowledge for. Nevertheless, I'll be using this.