Raised This Month: $32 Target: $400
 8% 

Solved How to solve this error?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
2389736818
Member
Join Date: Jul 2014
Location: China
Old 09-22-2018 , 10:49   How to solve this error?
Reply With Quote #1

sp code
PHP Code:
public Action Command_DeleteProjector(int clientint args)
{
    for (
int i 0INT_PROJECTOR_COUNTi++)
    {
        if(
IsValidEntity(C_Projector[i]))RemoveEntity(C_Projector[i], false);
        if(
IsValidEntity(C_ProjectorLight[i]))RemoveEntity(C_ProjectorLight[i], true);
        if(
IsValidEntity(C_ProjectorLight2[i]))RemoveEntity(C_ProjectorLight2[i], true);
        if(
IsValidEntity(C_ProjectorLight3[i]))RemoveEntity(C_ProjectorLight3[i], true);
        
        
PrintToDev(B_cvar_active_projectors_dev"%s Index: %i"TAG_CHATi);
    }
    
INT_PROJECTOR_COUNT 0;

Attached Thumbnails
Click image for larger version

Name:	20180922224701.png
Views:	48
Size:	14.3 KB
ID:	171507  
__________________

Last edited by 2389736818; 09-22-2018 at 11:10.
2389736818 is offline
2389736818
Member
Join Date: Jul 2014
Location: China
Old 09-22-2018 , 10:54   Re: How to solve this error
Reply With Quote #2

I tried to delete ''RemoveEntity'' but there was a warning.
Attached Thumbnails
Click image for larger version

Name:	20180922225416.png
Views:	39
Size:	15.3 KB
ID:	171508  
__________________

Last edited by 2389736818; 09-22-2018 at 10:55.
2389736818 is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 09-22-2018 , 11:07   Re: How to solve this error?
Reply With Quote #3

https://sm.alliedmods.net/new-api/entity/RemoveEntity

PHP Code:
public Action Command_DeleteProjector(int clientint args

    for (
int i 0INT_PROJECTOR_COUNTi++) 
    { 
        if(
IsValidEntity(C_Projector[i]))RemoveEntity(C_Projector[i]); 
        if(
IsValidEntity(C_ProjectorLight[i]))RemoveEntity(C_ProjectorLight[i]); 
        if(
IsValidEntity(C_ProjectorLight2[i]))RemoveEntity(C_ProjectorLight2[i]); 
        if(
IsValidEntity(C_ProjectorLight3[i]))RemoveEntity(C_ProjectorLight3[i]); 
         
        
PrintToDev(B_cvar_active_projectors_dev"%s Index: %i"TAG_CHATi); 
    } 
    
INT_PROJECTOR_COUNT 0

__________________
8guawong is offline
Reply



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 10:15.


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