Stupid - 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)
+--- Thread: Stupid (
/showthread.php?tid=386208)
Stupid -
thefatshizms - 19.10.2012
Код:
C:\Users\iphone\Desktop\SFCNR\Sfcnr Scripting\gamemodes\Sfcnr.pwn(1746) : warning 204: symbol is assigned a value that is never used: "RobbedA"
C:\Users\iphone\Desktop\SFCNR\Sfcnr Scripting\gamemodes\Sfcnr.pwn(1758) : warning 204: symbol is assigned a value that is never used: "RobbedB"
C:\Users\iphone\Desktop\SFCNR\Sfcnr Scripting\gamemodes\Sfcnr.pwn(1700) : warning 204: symbol is assigned a value that is never used: "RobbedC"
C:\Users\iphone\Desktop\SFCNR\Sfcnr Scripting\gamemodes\Sfcnr.pwn(1763) : warning 204: symbol is assigned a value that is never used: "RobbedR"
C:\Users\iphone\Desktop\SFCNR\Sfcnr Scripting\gamemodes\Sfcnr.pwn(1752) : warning 204: symbol is assigned a value that is never used: "RobbedZ"
I'm getting annoyed with these warning's :@ ive used them in onegamemodeinit() and in timers
Re: Stupid -
Lutz - 19.10.2012
Can you show us the code?
Re: Stupid -
thefatshizms - 19.10.2012
The new's
pawn Код:
new bool: RobbedR;
new bool: RobbedZ;
new bool: RobbedB;
new bool: RobbedC;
new bool: RobbedA;
Ongamemodeinit()
pawn Код:
RobbedZ = false;
RobbedR = false;
RobbedZ = false;
RobbedA = false;
RobbedB = false;
RobbedC = false;
timer
Re: Stupid -
doreto - 19.10.2012
Next time use proper title for your topic or you will get warned/banned
Go to thos line and delete/comment them
RobbedA
RobbedB
RobbedC
RobbedR
RobbedZ
becose script deletect them useless/never use them
Re: Stupid -
XlimitXstudio - 19.10.2012
I am not really sure but change the new bool: **shit here* to new *shit here* and put everything to true.
Re: Stupid -
thefatshizms - 19.10.2012
This is solved, turns out i forgot the command :facepalm:
Re: Stupid -
HyDrAtIc - 19.10.2012
Add at top of your script:
PHP код:
#pragma tabsize 0
Re: Stupid -
Riddick94 - 19.10.2012
Quote:
Originally Posted by James_Nick
Add at top of your script:
PHP код:
#pragma tabsize 0
|
Kurwa, what? Firstly, you should not use that thing, just make your code more clearly and learn the indentation. Secondly that pragma works different way, hiding player "un-indentationed" code.
@thefatshizms, default value of integers, booleans and other procedures is defualt set to 0/false. So you don't need to set values of boolean to false in OnGameModeInit. And secondly show your timer code where you set the boolean/s to true.