Comparing string :(
#7

Quote:
Originally Posted by Cell_
Посмотреть сообщение
Are you sure you are going for faction ID 9 and that both names match? Try printing both strings (leader name, player name) and see if they match.

Edit: Didn't see the above post, he has posted while I was typing..
Oh, that could be the problem
if (strcmp(GroupInfo[9][gLeader], sendername(playerid)) == 0)

I tried it like this before
pawn Код:
if (strcmp(GroupInfo[MAX_GROUPS][gLeader], sendername(playerid)) == 0)
Which gave errors
Код:
error 032: array index out of bounds (variable "GroupInfo")
Reply


Messages In This Thread
Comparing string :( - by Rudy_ - 15.10.2014, 12:34
Re: Comparing string :( - by Anzipane - 15.10.2014, 12:39
Re: Comparing string :( - by Rudy_ - 15.10.2014, 12:45
Re: Comparing string :( - by Anzipane - 15.10.2014, 12:47
Re: Comparing string :( - by Cell_ - 15.10.2014, 12:50
Re: Comparing string :( - by Rudy_ - 15.10.2014, 12:51
Re: Comparing string :( - by Rudy_ - 15.10.2014, 12:53
Re: Comparing string :( - by Blunt - 15.10.2014, 12:54
Re: Comparing string :( - by Cell_ - 15.10.2014, 13:21
Re: Comparing string :( - by Rudy_ - 15.10.2014, 13:29

Forum Jump:


Users browsing this thread: 3 Guest(s)