Thread: compile error
View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-18-2023 , 00:41   Re: compile error
Reply With Quote #3

Quote:
Originally Posted by bigdaddy424 View Post
PHP Code:
#include < amxmodx >
#include < cstrike >
#include < fun >

#define maxplayers MaxClients

new const g_RoundEndDelay 1.0// Delay before moving dead players to T team

public Round_End()
{
  new 
num_alive_t 0;

... 
This forum is for learning so it is much more beneficial to the users if you explain what you changed and why. Also, you still have the tag mismatch.

Quote:
Originally Posted by Ace67 View Post
C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\lastround .sma(3) : warning 213: tag mismatch
C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\lastround .sma(52) : warning 213: tag mismatch
This because you're trying to assign a floating point value to an integer variable. To create a floating-point variable, you prepend the variable with the "Float" tag like this:

PHP Code:
new Float:myFloatingPointVariable 2.0 
So, in your case, you need to do this for both the g_RoundEndDelay and the delay variables.
__________________
fysiks is offline