Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] The Source Code → [Solved] Get game name

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 3

1

Topic: [Solved] Get game name

How would i make a if statement to get game name eg.
if (game_get_name = "etc")
{
}

What is the proper code to use?

The error shows: Error, expression must be  a modifiable lvalue.

2

Re: [Solved] Get game name

game_get_name used without arguments?
maybe:
if (game_get_name(game) == "etc")
{
}

3

Re: [Solved] Get game name

In C++ you can not use equal operator for const char *.
A proper example can be found in the existing code.

C++

if ( strcasecmp(game_get_name(game), "etc") ) { ... }

Lua

if (game.name == "etc") then ... end
Do not ask for support in PM.

Posts: 3

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 1 guest, 0 registered users

forums.pvpgn.pro → [EN] The Source Code → [Solved] Get game name



Generated in 0.063 seconds (75% PHP - 25% DB) with 20 queries