Problem: With creating EntityLight with custom Fields.
Quote:
Quote:
So i can enter custom number before it shows up. |
isn't it this
Code:
|
:?:
Hmm. Sry but i dont understand what you mean. |
well thats the code for changing the color, so you have to just make a command to write the colors you want to that
|
Erm
Can you make an example of what you exactly meant this to be ? Cause i thought its done with new szArg1[32] read_argv(1,szArg1,31) new szArg2[32] read_argv(1,szArg2,31) new szArg3[32] read_argv(1,szArg3,31) new szArg4[32] read_argv(1,szArg4,31) new szArg5[32] read_argv(1,szArg5,31) new szArg6[32] read_argv(1,szArg6,31) And these Lines give me errors in compiling write_coord( szArg1 ) //coord radius write_byte( szArg2 ) //Red write_byte( szArg3 ) //Green write_byte( szArg4 ) //Blue write_byte( szArg5 ) //Life write_coord( szArg6 ) //Decay Rate |
for each szArg1[32] you are setting them to the first argument, you need it to be like
Code:
|
hmm ok.
I still get the same errors by compiling. onthese Lines Code:
write_coord( szArg1 ) //coord radiusCode:
#include <amxmodx> |
whats the error?
|
The errors are "argument type mismatch <argument 1>
And to be true i dont know what decay rate is. I think its the speed of the Vanishing entity light. |
hmmm, well i think it reads that arguments as strings, so you might have to do str_to_num for your rgb stuff
|
| All times are GMT -4. The time now is 20:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.