SA-MP Forums Archive
Preciding Level..?? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Preciding Level..?? (/showthread.php?tid=277849)



Preciding Level..?? - Ronaldo_raul™ - 19.08.2011

When i try to add this in my GM i get this warnings... i cant find out the problem..! i hope you guys can do it..! help me guys -
pawn Код:
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\gamemodes\freeroam.pwn(10924) : warning 219: local variable "h" shadows a variable at a preceding level
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\gamemodes\freeroam.pwn(11091) : warning 219: local variable "h" shadows a variable at a preceding level
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.



Re: Preciding Level..?? - Tanush123 - 19.08.2011

Lol remove the new Float:h or w/e on those lines because you defined them twice


Re: Preciding Level..?? - Ronaldo_raul™ - 19.08.2011

Quote:
Originally Posted by Tanush123
Посмотреть сообщение
Lol remove the new Float:h or w/e on those lines because you defined them twice
No use its showing error
pawn Код:
tag mismatch



Re: Preciding Level..?? - Jeffry - 19.08.2011

Change the 'new Float:h;' to new Float:health; and change the 'h' to health in your function.


Re: Preciding Level..?? - [MWR]Blood - 19.08.2011

Don't remove just the Float, remove the
pawn Код:
new Float:h;
EDIT: Too late


Re: Preciding Level..?? - Ronaldo_raul™ - 19.08.2011

Quote:
Originally Posted by Jeffry
Посмотреть сообщение
Change the 'new Float:h;' to new Float:health; and change the 'h' to health in your function.
omg thanks ..helped a lot..!


Re: Preciding Level..?? - Jeffry - 19.08.2011

Quote:
Originally Posted by Ronaldo_raul™
Посмотреть сообщение
omg thanks ..helped a lot..!
No problem. Glad I could help you.


Re: Preciding Level..?? - Ronaldo_raul™ - 19.08.2011

Quote:
Originally Posted by Jeffry
Посмотреть сообщение
No problem. Glad I could help you.
no wait i got some problems i upload the screen as fast i can..!

EDIT:
Here is the screen i face when i try to spawn ..and after compilations no objects are loaded..-



Re: Preciding Level..?? - Jeffry - 19.08.2011

That seems strange. I had this too, but this happens only if your game has a problem. Have you added any mods or something that might crash your game?


Re: Preciding Level..?? - Ronaldo_raul™ - 19.08.2011

yeah i have added mods....but if i remove the whole code ..than it comes back to normal so no problem with mods..??


Re: Preciding Level..?? - Tanush123 - 19.08.2011

off topic: jeffry your signature is hot ;o


Re: Preciding Level..?? - Shockey HD - 19.08.2011

Quote:
Originally Posted by Tanush123
Посмотреть сообщение
off topic: jeffry your signature is hot ;o
PM Someone about that or post a Visitor message, You post is Post leeching


Re: Preciding Level..?? - Ronaldo_raul™ - 19.08.2011

Quote:
Originally Posted by Shockey HD
Посмотреть сообщение
PM Someone about that or post a Visitor message, You post is Post leeching
agree...!
And Please help me..!


Re: Preciding Level..?? - Jeffry - 20.08.2011

Quote:
Originally Posted by Ronaldo_raul™
Посмотреть сообщение
yeah i have added mods....but if i remove the whole code ..than it comes back to normal so no problem with mods..??
Probably tyour create an object or a vehicle that is modded and make the crash.