Problem...
#2

The problem is here:
Код:
if(strcmp(pname,"jimis",true) == 0) && if(strcmp(pname,"name2",true) == 0) && if(strcmp(pname,"name3",true)== 0 )
First, you can't use multiple 'if's on one line. Second, you're asking if the player is called 'jimis', but also 'name2' and 'name3' at the same time. Obviously you can't have three names at the same time.

This should be good:
Код:
if(!strcmp(pname,"jimis",true) || !strcmp(pname,"name2",true) || !strcmp(pname,"name3",true))
I also changed '== 0' to just a exclamation mark ('!') before the function, which both just give the same effect, but it makes the line a bit shorter.
Reply


Messages In This Thread
Problem... - by jimis - 22.03.2012, 12:32
Re: Problem... - by Basssiiie - 22.03.2012, 12:39
Re: Problem... - by Jack.7331 - 22.03.2012, 12:40
Re: Problem... - by jimis - 22.03.2012, 13:45

Forum Jump:


Users browsing this thread: 1 Guest(s)