Re: lmao my first non successfull attempt at c++
Quote:
Originally Posted by
Shockdot1
My god... I really want to learn C++ also, I am to lazy to learn it online...
I was working with Turing last semester and I designed and created a simple Pacman game along with various other programs....
The basic code language seems similar to C++ but there quite a few differences....
Zephyr, correct my if I am wrong but GetZPostChannelChat is a get statement that will check what a player types and if that player types any of the commands stated "/admin_ban" then it switches the UgradeID in the database to the assigned number... I am fairly sure the zchar is another variable, possible a Constant Variable, but I am not quite sure of it's purpose?
there's no ()
it's not call :p
EDIT: or then it is a macro, which is pretty bad habbit to have >_>"
also if it does get some data why the fuck would he use assignment operation on it:
GetZPostChannelChat = "/admin_ban" + zchar;
lol also in the if statement
if "/admin_ban" + zchar = true;
first off i'm pretty curious on the addition off
"/admin_ban" and zchar O_O
then the he is trying to store boolean true in the RESULTS of that "/admin_ban"+zchar
you compare with ==
you assign with =
so the if statement is always true (if it even compiles)...
and then the semicomma after it
;
basicly same thing as
if (true)
;
which is "DO NOTHING"
then he does a branchet structure for the if statement he already handled >.> (by accident)
EDIT2:
yea well you could use
_memicmp too but anyways i was demonstrating something there >.>