Undefined symbol "iIndex" and some errors
#1

C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(52090) : error 017: undefined symbol "iIndex"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(5213 : error 017: undefined symbol "iIndex"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(52173) : error 017: undefined symbol "iIndex"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(54077) : error 029: invalid expression, assumed zero
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(54077) : warning 215: expression has no effect
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(54077) : error 001: expected token: ";", but found "if"

Please help.. stuck with this whole day tryna fix it :L
-.-

HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ],30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1,-1,-1, 30.0);

^^ CODE ^^
Reply
#2

The top

pawn Код:
new iIndex;
Reply
#3

Where do I put that?
Reply
#4

Look carefully at what he said:


Quote:

The top

Once more:

Quote:

The top

And just in case you missed it again

Quote:

The top

Reply
#5

On top of your GM
Reply
#6

C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(15755) : warning 219: local variable "iIndex" shadows a variable at a preceding level
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(16485) : warning 219: local variable "iIndex" shadows a variable at a preceding level
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(16531) : warning 219: local variable "iIndex" shadows a variable at a preceding level
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(16556) : warning 219: local variable "iIndex" shadows a variable at a preceding level
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(16855) : warning 219: local variable "iIndex" shadows a variable at a preceding level
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(27964) : warning 219: local variable "iIndex" shadows a variable at a preceding level
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(28003) : warning 219: local variable "iIndex" shadows a variable at a preceding level
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(28024) : warning 219: local variable "iIndex" shadows a variable at a preceding level
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(52091) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodesMyRP.pwn(52139) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(52174) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(53869) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(53881) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(53889) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(54032) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(54042) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(54045) : warning 217: loose indentation
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(54050) : error 017: undefined symbol "szFileStr"


HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 30.0);
HouseInfo[houseid][hPickupID] = CreateDynamicPickup(1273, 23, HouseInfo[houseid][hExteriorX], HouseInfo[houseid][hExteriorY], HouseInfo[houseid][hExteriorZ]);

That is for the 50,000 errors
Reply
#7

Quote:
Originally Posted by RalphDogg
Посмотреть сообщение
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(15755) : warning 219: local variable "iIndex" shadows a variable at a preceding level
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(16485) : warning 219: local variable "iIndex" shadows a variable at a preceding level
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(16531) : warning 219: local variable "iIndex" shadows a variable at a preceding level
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(16556) : warning 219: local variable "iIndex" shadows a variable at a preceding level
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(16855) : warning 219: local variable "iIndex" shadows a variable at a preceding level
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(27964) : warning 219: local variable "iIndex" shadows a variable at a preceding level
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(28003) : warning 219: local variable "iIndex" shadows a variable at a preceding level
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(28024) : warning 219: local variable "iIndex" shadows a variable at a preceding level
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(52091) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodesMyRP.pwn(52139) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(52174) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(53869) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(53881) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(53889) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(54032) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(54042) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(54045) : warning 217: loose indentation
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(54050) : error 017: undefined symbol "szFileStr"


HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 30.0);
HouseInfo[houseid][hPickupID] = CreateDynamicPickup(1273, 23, HouseInfo[houseid][hExteriorX], HouseInfo[houseid][hExteriorY], HouseInfo[houseid][hExteriorZ]);

That is for the 50,000 errors
I dont think you should be making a gamemode, as you cant even read the errors.
If you would read you can clearly see that a LOCAL variable is having the same name as a GLOBAL variable,
Reply
#8

Im not making one I just got one and I updated the streamer because the gates and LSPD doors etc were all weird and glitched so these errors come up when I try to update streamer so i'm trying to fix them :L and you don't have to fix the warnings so its just

C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(52091) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodesMyRP.pwn(52139) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(52174) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(53869) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(53881) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(53889) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(54032) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(54042) : error 017: undefined symbol "szFileStr"
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(54045) : warning 217: loose indentation
C:\Users\Zain\Desktop\Sa-mp server\gamemodes\MyRP.pwn(54050) : error 017: undefined symbol "szFileStr"

and this

HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 30.0);
HouseInfo[houseid][hPickupID] = CreateDynamicPickup(1273, 23, HouseInfo[houseid][hExteriorX], HouseInfo[houseid][hExteriorY], HouseInfo[houseid][hExteriorZ]);

Is the code for them
Reply
#9

Anyone?
Reply
#10

Two days in a row I haven't fixed this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)