array must be indexed (variable "playerip")
#3

Which line is 105?
And i can already see one thing wrong here :
Код:
if(playerip == [my ip])
You cannot compare strings / arrays using comparison operators such as == or !=, you need to use a function which will compare the two.
Код:
if(!strcmp(playerip, "your ip here"))
will compare playerip and your ip.
Reply


Messages In This Thread
array must be indexed (variable "playerip") - by Naxix - 11.03.2010, 16:14
Re: array must be indexed (variable "playerip") - by Correlli - 11.03.2010, 16:18
Re: array must be indexed (variable "playerip") - by iLinx - 11.03.2010, 16:21

Forum Jump:


Users browsing this thread: 1 Guest(s)