problem on PKTournament...

06/30/2014 23:19 anone.ious#1
Hey guys...
i added PKTournament but when i go to Chat.cs and add the Command:
if (Cmd[0] == "/pkt")
Features.PKTournament.BeginTournament();
is give me error: The name 'Cmd' does not exist in the current context
i hope you will help me and Thanks guys :)


Edit: nvm i fixed it. it was because i added the Command to wrong line...
06/30/2014 23:24 KraHen#2
I`m not an expert, but it is probably because the variable Cmd does not exist in the context of your code.
06/30/2014 23:41 anone.ious#3
more 1 please? i will wait :)
07/01/2014 12:01 turk55#4
Quote:
Originally Posted by anone.ious View Post
more 1 please? i will wait :)
Wait for what? He gave you the answer. Not to mention, the error log gives you all the information you need.
07/01/2014 12:56 anone.ious#5
Quote:
Originally Posted by KraHen View Post
I`m not an expert, but it is probably because the variable Cmd does not exist in the context of your code.
Quote:
Originally Posted by turk55 View Post
Wait for what? He gave you the answer. Not to mention, the error log gives you all the information you need.
ohh sorry and thanks :)
07/01/2014 12:56 phize#6
Honestly, there needs to be rules on what is allowed to be posted here and in the programming sections, like having intermediate experience/knowledge, at least. And infractions should be given out on dumb shit like this.
07/01/2014 20:06 anone.ious#7
but where i need put that code ?
07/01/2014 21:08 EpvpIsAJoke#8
Quote:
Originally Posted by anone.ious View Post
but where i need put that code ?
:facepalm::facepalm::facepalm::facepalm::facepalm:
07/01/2014 22:19 abdoumatrix#9
Quote:
Originally Posted by anone.ious View Post
is give me error: The name 'Cmd' does not exist in the current context
did u tried to search for it?

how u want to try a cmd that doesn't exists?
07/01/2014 22:29 EpvpIsAJoke#10
Quote:
Originally Posted by abdoumatrix View Post
how u want to try a cmd that doesn't exists?
:facepalm::facepalm::facepalm::facepalm::facepalm: :facepalm::facepalm:
07/01/2014 23:18 anone.ious#11
nvm i fixed it. it was because i added the Command to wrong line...