Raised This Month: $ Target: $400
 0% 

Solved Undefined symbol pev


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eNNkds
Member
Join Date: Sep 2012
Location: Romania
Old 10-29-2021 , 13:50   Undefined symbol pev
Reply With Quote #1

hi got some erros in this..
useing amxmodx 1.9
im already marked with red the line with the errors. Thank you for help
Code:
gunxpmod.sma(277) : error 017: undefined symbol "pev"
gunxpmod.sma(277) : warning 215: expression has no effect
gunxpmod.sma(277) : error 001: expected token: ";", but found ")"
gunxpmod.sma(277) : error 029: invalid expression, assumed zero
gunxpmod.sma(277) : fatal error 107: too many error messages on one line
Code:
public check_level(id)
{
	if(PlayerLevel[id] < MAXLEVEL-1)
	{
		while(PlayerXp[id] >= LEVELS[PlayerLevel[id]])
		{
			PlayerLevel[id]++;
				
			new iAlive = is_user_alive(id);

			if(!iAlive) return;
			
                        new Float: iOrigin[3]; pev(id, pev_origin, iOrigin);

			engfunc(EngFunc_MessageBegin, MSG_PAS, SVC_TEMPENTITY, iOrigin, 0);
			write_byte(TE_EXPLOSION); 
			engfunc(EngFunc_WriteCoord, iOrigin[0]); 
			engfunc(EngFunc_WriteCoord, iOrigin[1]); 
			engfunc(EngFunc_WriteCoord, iOrigin[2] + 1.0);
			write_short(0); 
			write_byte(30); 
			write_byte(5);
			write_byte(4);
			message_end();
 
                        emit_sound(id, CHAN_ITEM, LevelUp, 1.0, ATTN_NORM, 0, PITCH_NORM);
			
			new name[32]; get_user_name(id, name, sizeof(name));
			CC_SendMessage(0, "&x04[GunXP] &x01%s reaches level &x06%i&x04!", name, PlayerLevel[id]);
		}
	} 
}

Last edited by eNNkds; 10-29-2021 at 15:42.
eNNkds is offline
Send a message via Skype™ to eNNkds
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 10-29-2021 , 14:47   Re: Undefined symbol pev
Reply With Quote #2

#include <fakemeta>
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
iceeedr is offline
Send a message via Skype™ to iceeedr
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:33.


Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode