AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   i need help when i work with function for this happens (https://forums.alliedmods.net/showthread.php?t=333263)

antonio_Haliagic 06-28-2021 11:17

i need help when i work with function for this happens
 
C:\Users\PCCCCCCCCCCCCCCCCCCC\Desktop\samp server\gamemodes\GCRP.pwn(449) : error 001: expected token: ";", but found "for"
this is line 449
for(new i = 0; i < 4; i++)

Natsheh 06-28-2021 11:47

Re: i need help when i work with function for this happens
 
Show the whole script or don't bother getting help here.

Napoleon_be 06-28-2021 18:00

Re: i need help when i work with function for this happens
 
You probably have to add a semicolon at the end of line 450 or 451.

I'm purely guessing because of this

PHP Code:

#pragma semicolon 1 


hellmonja 07-03-2021 15:56

Re: i need help when i work with function for this happens
 
Quote:

Originally Posted by Natsheh (Post 2751403)
Show the whole script or don't bother getting help here.

Why so confrontational? Whatever happened to welcoming newbies and teaching them the ropes?...

Bugsy 07-03-2021 16:05

Re: i need help when i work with function for this happens
 
In some cases you can post only the line causing an issue/error, but in this case it is the surrounding code that is the issue. Post either the entire function or entire plugin.

Natsheh 07-03-2021 17:27

Re: i need help when i work with function for this happens
 
Quote:

Originally Posted by hellmonja (Post 2751807)
Why so confrontational? Whatever happened to welcoming newbies and teaching them the ropes?...

how can newbies learn if they can't even read the rules ?

hellmonja 07-03-2021 23:48

Re: i need help when i work with function for this happens
 
Quote:

Originally Posted by Natsheh (Post 2751816)
how can newbies learn if they can't even read the rules ?

There are far classier ways to go about it:
1. "Please post the whole code so we can investigate further."
2. "That line of code seems fine. Please post the whole script so we can see where the problem is."
3. "That doesn't help us much. You need to post the whole code if we're gonna help you."

Basically what you said is more or less like, "Post whole code or get the f**k out."
There's no need to be harsh, really. Getting the solution is enough incentive for them to follow the riles...:bacon!:

Natsheh 07-04-2021 03:07

Re: i need help when i work with function for this happens
 
Well mate this is earth its not heaven.

And i don't see any sign of disrespecting.

If you think i meant "Post whole code or get the f**k out." Then the problem is in you.

hellmonja 07-04-2021 08:13

Re: i need help when i work with function for this happens
 
Quote:

Originally Posted by Natsheh (Post 2751839)
Well mate this is earth its not heaven.

And i don't see any sign of disrespecting.

If you think i meant "Post whole code or get the f**k out." Then the problem is in you.

Whether it was disrespectful or not is up for debate. My point is there are far better ways to go about it, without discouraging them. An easy way to see my point is to imagine someone telling you what you told him. In a word, it is called empathy, a trait the internet sorely lacks. This may not be heaven, but is it not better to find better ways of doing things? Isn't that we humans here on earth have been trying to do all along?

@antonio_Haliagic: We digressed for too long, apologies. Whenever you're ready, post the entirety of your code...

devilExE__ 07-08-2021 08:33

Re: i need help when i work with function for this happens
 
Quote:

Originally Posted by antonio_Haliagic (Post 2751400)
C:\Users\PCCCCCCCCCCCCCCCCCCC\Desktop\samp server\gamemodes\GCRP.pwn(449) : error 001: expected token: ";", but found "for"
this is line 449
for(new i = 0; i < 4; i++)

From my experiences with Pawn, you lack a semicolon on line 448.


All times are GMT -4. The time now is 11:28.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.