Scripting Problem
#1

Hey guys,

I have a problem.

This is the error :
Код:
D:\American_Idiot\gamemodes\American_idiot.pwn(1212) : warning 219: local variable "string" shadows a variable at a preceding level
D:\American_Idiot\gamemodes\American_idiot.pwn(1213) : warning 219: local variable "cmd" shadows a variable at a preceding level
D:\American_Idiot\gamemodes\American_idiot.pwn(1214) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\American_Idiot\gamemodes\American_idiot.pwn(1215) : warning 219: local variable "idx" shadows a variable at a preceding level
D:\American_Idiot\gamemodes\American_idiot.pwn(1800) : warning 219: local variable "string" shadows a variable at a preceding level
D:\American_Idiot\gamemodes\American_idiot.pwn(1871) : warning 219: local variable "string" shadows a variable at a preceding level
Код:
1212 till 1220 :

(playerid, cmdtext[])
{
  new string[128];
	new cmd[32];
	new tmp[32];
	new idx;
	cmd = strtok(cmdtext, idx);

Line 1800 : {
Line 1871 : LOw Nothing
Reply
#2

It's already being used. new string[256]; has already been used somewhere in the callback. so has the rest of the stuff it says it's over shadowing.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)