Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

I need someone who can check my lines of codes

Featured Replies

I'm really confused.......IDK why my codes are not working

Especially From conversation Part.........

And Sometimes few Peds are not Spawning.....I dont want to give up my first project as dev

I dont care how long will it takes,  I wish someone who can check my callout....

Simple 500 lines, no hard logic.

I used just some simple arrays, methods and so on 

Who can be my lifesaver?

 

TaskForceCallouts.zip

  • Community Team
4 hours ago, Lit'Wayne said:

I'm really confused.......IDK why my codes are not working

Especially From conversation Part.........

And Sometimes few Peds are not Spawning.....I dont want to give up my first project as dev

I dont care how long will it takes,  I wish someone who can check my callout....

Simple 500 lines, no hard logic.

I used just some simple arrays, methods and so on 

Who can be my lifesaver?

 

TaskForceCallouts.zip 619 B · 2 downloads

 

This is only the project file (.sln) so there is no code. Try uploading your project to github and i'll help you out.

  • Author
19 hours ago, SuperPyroManiac said:

 

This is only the project file (.sln) so there is no code. Try uploading your project to github and i'll help you out.

Really?? thanks!!!!

Here's the repository

I fixed some of the problems 

I'm having trouble after the communication with the Ped Commander

Callout ends.......IDK why

 

Here's the scenario:

- Callout Accepted

- Go to NOOSE HQ

- Talk with Commander

- Suspect Start moving to Terrorists base, with Blip

- If you get too close, Pursuit Created

- After you and the Suspect reach that base, you can call backups by pressing Y

 

I hope you can make some advises with my messy, nooby codes....

Thanks a lot

 

https://github.com/SNSDForever/TForceCallouts/blob/master/TrackTerrorist.cs

 

  • Community Team
26 minutes ago, Lit'Wayne said:

Really?? thanks!!!!

Here's the repository

I fixed some of the problems 

I'm having trouble after the communication with the Ped Commander

Callout ends.......IDK why

 

Here's the scenario:

- Callout Accepted

- Go to NOOSE HQ

- Talk with Commander

- Suspect Start moving to Terrorists base, with Blip

- If you get too close, Pursuit Created

- After you and the Suspect reach that base, you can call backups by pressing Y

 

I hope you can make some advises with my messy, nooby codes....

Thanks a lot

 

https://github.com/SNSDForever/TForceCallouts/blob/master/TrackTerrorist.cs

 

 

I think you set the repository to private. I cannot view it. 

  • Community Team
52 minutes ago, Lit'Wayne said:

Thanks a lot brahhh 😄

 

So one issue I see is the backup function you made. There is really no need for it since you can do the same thing with LSPDFR API. 

Example:

Functions.RequestBackup(SpawnPoint, LSPD_First_Response.EBackupResponseType.Code3, LSPD_First_Response.EBackupUnitType.NooseTeam);

Just replace SpawnPoint with a Vector3.

So you could completely replace all of the spawnBackUps() function because I think that is where problems are coming from. You have a lot of arrays that are not needed there.

 

In your process you have a big oopsie, you sleep the main gamefiber. You always want to call a new gamefiber when you do that:

                        GameFiber.StartNew(delegate
                        {
                          for (int i = 0; i < conversation.Count(); i++)
                          {
                          //YourCode
                          }
                        });

Also your while loops should have {}

while(thing)

{

//Your Code

}

You also have some infinite loops in there that could cause problems.

 

I strongly suggest watching this series:

Spoiler

 

Looks like you understand how to make the callouts, but there is just things all around that can be causing problems. Never give up with coding! You got this! You can look at open source callouts to see how they handle certain things and learn from it. As well as the C# tutorials on youtube.

My callouts are open source, and you can view them here:

https://github.com/SuperPyroManiac/SuperCallouts

You can see how I create stuff. My method is different from yours but you can get the idea.

 

If I were you i'd re-create the callout. Start small so it works by not including some of the dialogue, backup, etc and once it's running the way you want it to, add more stuff to it, that way if it stops working along the way you know what exactly caused it. It looks like a cool callout and you have the basic idea down, think of this version as a rough draft, now you can create the real deal and have it optimized and cleaned up.

I hope this helps.

 

Edited by SuperPyroManiac

  • Author
15 minutes ago, SuperPyroManiac said:

 

So one issue I see is the backup function you made. There is really no need for it since you can do the same thing with LSPDFR API. 

Example:

Functions.RequestBackup(SpawnPoint, LSPD_First_Response.EBackupResponseType.Code3, LSPD_First_Response.EBackupUnitType.NooseTeam);

Just replace SpawnPoint with a Vector3.

So you could completely replace all of the spawnBackUps() function because I think that is where problems are coming from. You have a lot of arrays that are not needed there.

 

In your process you have a big oopsie, you sleep the main gamefiber. You always want to call a new gamefiber when you do that:


                        GameFiber.StartNew(delegate
                        {
                          for (int i = 0; i < conversation.Count(); i++)
                          {
                          //YourCode
                          }
                        });

Also your while loops should have {}


while(thing)

{

//Your Code

}

You also have some infinite loops in there that could cause problems.

 

I strongly suggest watching this series:

  Reveal hidden contents

 

Looks like you understand how to make the callouts, but there is just things all around that can be causing problems. Never give up with coding! You got this! You can look at open source callouts to see how they handle certain things and learn from it. As well as the C# tutorials on youtube.

My callouts are open source, and you can view them here:

https://github.com/SuperPyroManiac/SuperCallouts

You can see how I create stuff. My method is different from yours but you can get the idea.

 

If I were you i'd re-create the callout. Start small so it works by not including some of the dialogue, backup, etc and once it's running the way you want it to, add more stuff to it, that way if it stops working along the way you know what exactly caused it. It looks like a cool callout and you have the basic idea down, think of this version as a rough draft, now you can create the real deal and have it optimized and cleaned up.

I hope this helps.

 

Thank you

I cant fully express how much i appreciate.......

Well I'm quite sleepy for now so I gotta check your advises tommorrow 🙂

You must be the kindest dev ive ever seen 

I'm sorry that I cant do anything for you.....

If you play lspdfr, I hope you could enjoy my callouts when i release dat

Thanks a lot

Can I PM you if I got any small struggle points or something like that?

  • Community Team
12 minutes ago, Lit'Wayne said:

Thank you

I cant fully express how much i appreciate.......

Well I'm quite sleepy for now so I gotta check your advises tommorrow 🙂

You must be the kindest dev ive ever seen 

I'm sorry that I cant do anything for you.....

If you play lspdfr, I hope you could enjoy my callouts when i release dat

Thanks a lot

Can I PM you if I got any small struggle points or something like that?

No problem, yes you can PM me anytime.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.