Raised This Month: $12 Target: $400
 3% 

i need help when i work with function for this happens


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
antonio_Haliagic
New Member
Join Date: Jun 2021
Old 06-28-2021 , 11:17   i need help when i work with function for this happens
Reply With Quote #1

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++)
antonio_Haliagic is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-28-2021 , 11:47   Re: i need help when i work with function for this happens
Reply With Quote #2

Show the whole script or don't bother getting help here.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 06-28-2021 , 18:00   Re: i need help when i work with function for this happens
Reply With Quote #3

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 
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
hellmonja
Senior Member
Join Date: Oct 2015
Old 07-03-2021 , 15:56   Re: i need help when i work with function for this happens
Reply With Quote #4

Quote:
Originally Posted by Natsheh View Post
Show the whole script or don't bother getting help here.
Why so confrontational? Whatever happened to welcoming newbies and teaching them the ropes?...
__________________
hellmonja is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-03-2021 , 16:05   Re: i need help when i work with function for this happens
Reply With Quote #5

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.
__________________
Bugsy is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-03-2021 , 17:27   Re: i need help when i work with function for this happens
Reply With Quote #6

Quote:
Originally Posted by hellmonja View Post
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 ?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
hellmonja
Senior Member
Join Date: Oct 2015
Old 07-03-2021 , 23:48   Re: i need help when i work with function for this happens
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
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...
__________________
hellmonja is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-04-2021 , 03:07   Re: i need help when i work with function for this happens
Reply With Quote #8

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.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 07-04-2021 at 03:19.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
hellmonja
Senior Member
Join Date: Oct 2015
Old 07-04-2021 , 08:13   Re: i need help when i work with function for this happens
Reply With Quote #9

Quote:
Originally Posted by Natsheh View Post
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...
__________________

Last edited by hellmonja; 07-04-2021 at 08:20.
hellmonja is offline
devilExE__
Junior Member
Join Date: Jul 2021
Location: Romania, Cluj
Old 07-08-2021 , 08:33   Re: i need help when i work with function for this happens
Reply With Quote #10

Quote:
Originally Posted by antonio_Haliagic View Post
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.
devilExE__ is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:58.


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