Raised This Month: $ Target: $400
 0% 

Entities are not spawning!!!!!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 01-29-2005 , 18:53  
Reply With Quote #2

i think a array is made this way:
Code:
new fakecivX[14] = {2959,2753,2129,2129,2129,2006,1064,65,65,-1633,-1633,-2256,-2221,-1568}
with { } NOT ( ) (but it seems that ( ) works too)
also these values should be floats (eg: 2959 -> float = 2959.0)
there it must be also new Float:fakecinX[14]...

Code:
create_entity(fakeciv[i])
what is fakeciv[i] ?
it must be a name
i suggest use
Code:
create_entity("info_target")
also i would not suggest to make checks on clients before u know they are connected
Code:
if(ptr < 1 || ptd < 1 || ptd > 32 || !is_user_alive(ptd) || !is_user_connected(ptd)){
return PLUGIN_CONTINUE
first u check if user is alive then if he is connected
rather do
Code:
if ( ptr < 1 || !is_user_connected(ptd) ){
	return PLUGIN_CONTINUE
}else if ( !is_user_alive(ptd)  )
	return PLUGIN_CONTINUE
u dont need ptd < 1 and ptd >32 as is_user_connected does the same and a bit more
__________________
alias White Panther
karlos is offline
 



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 19:24.


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