SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 19/10/2019, 07:22 PM   #1
TAKTAK26
Little Clucker
 
Join Date: Nov 2018
Posts: 24
Reputation: 0
Default Text error help me!

local variable "text" shadows a variable at a preceding level

public OnPlayerText(playerid, text[]) it's error?
TAKTAK26 is offline   Reply With Quote
Old 19/10/2019, 08:29 PM   #2
TAKTAK26
Little Clucker
 
Join Date: Nov 2018
Posts: 24
Reputation: 0
Default Re: Text error help me!

Help me!
TAKTAK26 is offline   Reply With Quote
Old 19/10/2019, 09:31 PM   #3
Vizi10
Huge Clucker
 
Join Date: May 2017
Location: Iran
Posts: 215
Reputation: 7
Default Re: Text error help me!

You have the
new text;
In your script?
Vizi10 is offline   Reply With Quote
Old 20/10/2019, 05:23 PM   #4
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 328
Reputation: 22
Default Re: Text error help me!

You have declared a variable like

Code:
new text[]; // something like this
Either rename it and also rename in codes or remove it if it's not used.
__________________
Offshowtime Fuck It!

Quote:
Originally Posted by Toroi View Post
blackmail people that join your server using their ip address as hostage

or get a job and play sa-mp for fun
SiaReyes is offline   Reply With Quote
Old 20/10/2019, 05:37 PM   #5
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 2,441
Reputation: 1620
Default Re: Text error help me!

^That.
"local variable "text" shadows a variable at a preceding level" ->This means you created an already existing variable in a lower level part of the script
Kwarde is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text Error rocketbunny Scripting Help 7 08/07/2019 12:15 PM
Text error hide sonn51280 Scripting Help 5 30/08/2018 03:47 AM
help OnPlayerText if(text[0] == error UserName31 Scripting Help 2 30/07/2014 10:20 PM
Error with Sublime text 2 Le3aT Scripting Help 11 20/06/2014 11:13 AM
Text Draw Error Ben_Hatfield Scripting Help 8 19/08/2012 10:28 PM


All times are GMT. The time now is 09:10 PM.


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