newbie confused
ok i'm looking through all these easy scripts, and i see this thing
Code:
but what i don't understand is what the Code:
|
hi
its n argument ... example... if u type in console kick playerXYZ Code:
new arg[32] first makes n variable ;) 2. read the argument of the command kick ;) here its playerXYZ read_argv(1,arg,31) 1 = nummer of argument ( kick <arg1> <arg2> <arg3>) arg = the variable where to put in the argument (arg = playerXYZ) 31 = how long is the argument (if its longer it will cut) hope its correckt :? cucu |
ok but whats an arg?
whats the basic layout for a block of code? Sorry if im ticking anyone of with my noobish but it will soon past, once you learn, u can't learn again... sorta |
Code:
so far that's my whole plugin, but now im stuck, i don't know what to do from there. I know what the symtax is for what im doing but do i have to add any of that new arg [32] stuff? |
put arg only if u want to use arguments to config the plugin at runtime ;)
like pause 1 pause 0 there u need n argument ;) |
ok thx, now i started small, just an easy rendering script:
Code:
now it says index is undefined, what does that mean? what slot i want it to be? what if i want it to be any slot? ps: can you tell where my loose identity thingy is? |
hi
this index bug is esey ;) set_user_rendering(index,kRenderTransTexture, 255,0,0,kRenderNormal,25) the index is wrong u must put n nummer there index = nummer of player 0 - 31 if u put "0" there its the 1. player on server if u put "2" there its the 2. player on server if u put "id" there its the player witch is using the command ;) u must replace index with id then its fine |
Quote:
if u put "1" there its the second player on server i'm a newbie ,too and i just want to know how the function worked u talked about Code:
set_user_rendering(index,kRenderTransTexture,255,0,0,kRenderNormal,25)but i can't understand it maybe when u use this,the player u specified will be looked in another color? |
OOOooo ups :roll:
ok 1 is 2. player ... LOL now i'v no time to explain set_user_rendering :( cucu |
Code:
Code:
|
| All times are GMT -4. The time now is 17:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.