P1God help
#1

PHP код:
new P1God 
Код:
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?
Reply
#2

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
Reply
#3

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
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
thanks,got it,P1God[240]
Reply
#4

Quote:
Originally Posted by KyNe
Посмотреть сообщение
thanks,got it,P1God[240]
Why such a big array?
Reply
#5

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.
Reply
#6



it doest show Yes or No,it just show 0 and 1?
Reply
#7

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".
Reply
#8

Quote:
Originally Posted by DelK
Посмотреть сообщение
Make sure you are not using "%d" instead of "%s".
Worked Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)