AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ Solved ] Store info at my created entity (https://forums.alliedmods.net/showthread.php?t=85071)

xPaw 02-05-2009 08:08

[ Solved ] Store info at my created entity
 
hello, how to store an some info, maybe text or numbers with spaces, in my entity what i created, its just info_target, ye i dont want use global variables, so for example i can store info at one place, and get it in other.

EDIT: oh i found way it was pev_message
PHP Code:

    set_pev(entitypev_message"hello_from_xpaw");

    
// [ ... ]

    
new szInfo[46];
    
pev(entitypev_messageszInfo45);
    
    
client_print(0print_chat"%s"szInfo); 



All times are GMT -4. The time now is 01:39.

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