SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 30/10/2010, 09:42 AM   #1
juuleman
Gangsta
 
juuleman's Avatar
 
Join Date: Feb 2009
Location: The Netherlands
Posts: 507
Reputation: 0
Default Warning about a string

Hey Guys,

I'm working on some things in my script and i added a string.
But now i get alot of these warnings:

pawn Code:
(5578) : warning 219: local variable "string" shadows a variable at a preceding level

Does anybody know what they mean?

Thanks
__________________
juuleman is offline  
Old 30/10/2010, 09:50 AM   #2
<Weponz>
Huge Clucker
 
<Weponz>'s Avatar
 
Join Date: Jul 2010
Location: Program Files/Scripts/Weponz/Pawno
Posts: 459
Reputation: 1
Default Re: Warning about a string

Quote:
Originally Posted by juuleman View Post
Hey Guys,

I'm working on some things in my script and i added a string.
But now i get alot of these warnings:

pawn Code:
(5578) : warning 219: local variable "string" shadows a variable at a preceding level

Does anybody know what they mean?

Thanks
It means theres another one....Just change that string IN THE CODE ITS SHOWING THE ERROR ON change the "String" to "Str"

If you dont understand post the whole code with errors and ill do it for u..
__________________
Quote:
Originally Posted by __
1) I'm not fat
2) I'm smart
3) I have a normal life
4) Again, I have a normal life and I'm smart
Quote:
Originally Posted by Geso
I like talking to people like this, makes me feel smart xD
<Weponz> is offline  
Old 30/10/2010, 09:51 AM   #3
iggy1
High-roller
 
iggy1's Avatar
 
Join Date: Mar 2009
Location: One past the end.
Posts: 2,421
Reputation: 273
Default Re: Warning about a string

Change the name of the string array, the error is because you have a global variable and local variable both called string.
iggy1 is offline  
Old 30/10/2010, 09:52 AM   #4
<Weponz>
Huge Clucker
 
<Weponz>'s Avatar
 
Join Date: Jul 2010
Location: Program Files/Scripts/Weponz/Pawno
Posts: 459
Reputation: 1
Default Re: Warning about a string

Quote:
Originally Posted by iggy1 View Post
Change the name of the string array, the error is because you have a global variable and local variable both called string.
Hmm thats why it happens "Tecnically"...Learn something new every day xD
__________________
Quote:
Originally Posted by __
1) I'm not fat
2) I'm smart
3) I have a normal life
4) Again, I have a normal life and I'm smart
Quote:
Originally Posted by Geso
I like talking to people like this, makes me feel smart xD
<Weponz> is offline  
Old 30/10/2010, 09:53 AM   #5
juuleman
Gangsta
 
juuleman's Avatar
 
Join Date: Feb 2009
Location: The Netherlands
Posts: 507
Reputation: 0
Default Re: Warning about a string

Thanks for your help, it works.
__________________
juuleman is offline  
 

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[HELP] string to md5 whitedragon Help Archive 1 28/02/2010 02:10 PM
warning with string Dainyzxz Help Archive 3 27/02/2010 12:12 PM
pls help me with my string :) KIDUL Help Archive 5 10/11/2009 04:31 PM
String Help zappydude Help Archive 5 07/02/2009 01:47 AM


All times are GMT. The time now is 05:35 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.