Raised This Month: $ Target: $400
 0% 

a problem with else


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 04-06-2006 , 22:51   a problem with else
Reply With Quote #1

hi i'm trying to make it so when the person is not incar he can spawn the car and when he is in car he exits the car but it does not spawn the car when the person is not incar
heres the code
Code:
public item_car(){     new arg[32], arg2[32], id, model     read_argv(1,arg,31)     read_argv(2,arg2,31)     id = str_to_num(arg)     model = str_to_num(arg2)     if(incar[id] == 0)     {         new player[33]         server_cmd("amx_createcar %s %s",model,player)         return PLUGIN_HANDLED     }     else     {         remove_entity(id)         client_print(id,print_chat,"[CarMod] You have exited your car.")     }     return PLUGIN_HANDLED }
wonsae 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 16:30.


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