Raised This Month: $ Target: $400
 0% 

Solved [CSTRIKE] Non-player entity 0 out of range


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 07-21-2019 , 09:03   Re: [CSTRIKE] Non-player entity 0 out of range
Reply With Quote #5

Quote:
Originally Posted by <VeCo> View Post
What exactly are ID_GIVEWEAPON and g_pszNameLrWeapon?
Quote:
#define ID_GIVEWEAPON (iTaskId - TASK_GIVEWEAPON)
Code:
new g_pszNameLrWeapon[32]
Code:
	switch (g_rgLR[LR_GAME])
	{
		case GAME_S4S:
		{
			new pszNameWeapon[32], szName[32];

			if (g_iWeaponId != 0)
				get_weaponname(g_iWeaponId, pszNameWeapon, charsmax(pszNameWeapon));
			
			get_user_name(pPrisoner, szName, charsmax(szName));
			copy(g_pszNameLrWeapon, charsmax(g_pszNameLrWeapon), pszNameWeapon);

			if (g_iWeaponId == CSW_DEAGLE)
			{
				set_hudmessage(0, 200, 0, -1.0, 0.5, 1, 1.0, 3.0, 0.2, 0.2, -1);
				show_hudmessage(pGuard, "Prisoner %s will get Deagle in 3 seconds!!!", szName);
			}
			
			set_task(3.0, "taskGiveWeapon", pPrisoner+TASK_GIVEWEAPON);
		}
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
 



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 17:31.


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