PlayerName error, Rep +
#1

I get this error when I'm making houses for my server.
pawn Код:
(851) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
Line 851:
pawn Код:
new PlayerName[24];
Reply
#2

delete the line
Reply
#3

Quote:
Originally Posted by fordawinzz
Посмотреть сообщение
delete the line
Then I get new errors:
pawn Код:
C:\Users\Karl\Desktop\Night-Drifterz\gamemodes\nightdrifterz.pwn(851) : error 076: syntax error in the expression, or invalid function call
C:\Users\Karl\Desktop\Night-Drifterz\gamemodes\nightdrifterz.pwn(852) : error 076: syntax error in the expression, or invalid function call
C:\Users\Karl\Desktop\Night-Drifterz\gamemodes\nightdrifterz.pwn(857) : error 076: syntax error in the expression, or invalid function call
Reply
#4

Try this instead.
Код:
new pName[MAX_PLAYER_NAME];
Reply
#5

Quote:
Originally Posted by Tomer!.$
Посмотреть сообщение
Try this instead.
Код:
new pName[MAX_PLAYER_NAME];
Thx man it worked!
Reply
#6

Im wondering about something: I got a host from volt-host, and am I supposed to use mysql for the house saving and stuff?
Reply
#7

You can use any saving system you want, MySQL, SQLite, Y_INI, simple INI, dini (Not recommended though)
Reply
#8

MySQL I'd say is most secure.
My script using MySQL I am coding.

10% done :P
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)