P1God help - 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: P1God help (
/showthread.php?tid=647500)
[Solved]P1God help -
KyNe - 06.01.2018
Код:
if(PlayerInfo[player1][God] == 1) P1God = "Yes"; else P1God = "No";
C:\Users\aiman\Desktop\Project\ADADA\LTFDM.pwn(240 5
: error 006: must be assigned to an array
C:\Users\aiman\Desktop\Project\ADADA\LTFDM.pwn(240 5
: error 006: must be assigned to an array
C:\Users\aiman\Desktop\Project\ADADA\LTFDM.pwn(240 5
: warning 204: symbol is assigned a value that is never used: "P1God"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
something wrong?
Re: P1God help -
Dayrion - 06.01.2018
That's not how arrays works, plus indentation exist for make your code more readable.
Read this:
https://sampforum.blast.hk/showthread.php?tid=265433
Re: P1God help -
KyNe - 06.01.2018
Quote:
Originally Posted by Dayrion
|
thanks,got it,P1God[240]
Re: P1God help -
RogueDrifter - 06.01.2018
Quote:
Originally Posted by KyNe
thanks,got it,P1God[240]
|
Why such a big array?
Re: P1God help -
DelK - 06.01.2018
Quote:
Originally Posted by KyNe
thanks,got it,P1God[240]
|
If it's just "yes" and "no", it does not need cell phones so great.
Re: P1God help -
KyNe - 06.01.2018
it doest show Yes or No,it just show 0 and 1?
Re: P1God help -
DelK - 06.01.2018
Quote:
Originally Posted by KyNe
it doest show Yes or No,it just show 0 and 1?
|
Make sure you are not using "%d" instead of "%s".
Re: P1God help -
KyNe - 06.01.2018
Quote:
Originally Posted by DelK
Make sure you are not using "%d" instead of "%s".
|
Worked
Thanks