|
Junior Member
|

12-04-2010
, 18:22
identifier
|
#1
|
blockmaker_v4.01.sma<3547>error 001: expected: ";", but found "-identifier-"
blockmaker_v4.01.sma<3572>error 001: expected: ";", but found "-identifier-"
blockmaker_v4.01.sma<3595>error 001: expected: ";", but found "-identifier-"
blockmaker_v4.01.sma<3619>error 001: expected: ";", but found "-identifier-"
blockmaker_v4.01.sma<3965>error 001: expected: ";", but found "-identifier-"
blockmaker_v4.01.sma<4681>error 001: expected: ";", but found "-identifier-"
PHP Code:
public ShowLightMenu(id) { new MenuBody[512], szColor[3], access[3], len, keys; access = (get_user_flags(id) & BM_ADMIN_LEVEL ? "\w" : "\d"); formatex(szColor, 3, access) <3547> len = format(MenuBody, 511, "\y%sLight Menu \r[Radius: \y%i\r] - \yBy Juice", gszPrefix, light_properites[id][0]); len += format(MenuBody[len], 511-len, "^n\r1. %sRadius +", szColor); len += format(MenuBody[len], 511-len, "^n\r2. %sCreate Light", szColor); len += format(MenuBody[len], 511-len, "^n\r3. %sRadius -", szColor); len += format(MenuBody[len], 511-len, "^n\r4. %sDelete Light^n", szColor); len += format(MenuBody[len], 511-len, "^n\r5. \wColor Selection \r[R: \y%i \r| G: \y%i \r| B: \y%i\r]^n", light_properites[id][1], light_properites[id][2],light_properites[id][3]); len += format(MenuBody[len], 511-len, "^n\r6. %sSwitch Noclip", szColor); len += format(MenuBody[len], 511-len, "^n\r7. %sSwitch GodMode^n",szColor); len += format(MenuBody[len], 511-len, "^n\r9. \wOptions Menu^n"); len += format(MenuBody[len], 511-len, "^n\r0. \wExit"); keys = ( 1<<4 | 1<<8 | 1<<9 ); if( get_user_flags(id) & BM_ADMIN_LEVEL ) keys |= ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<5 | 1<<6 );
show_menu(id, keys, MenuBody, -1, "LightMenu"); }
PHP Code:
public ShowOptionMenu(id) { new MenuBody[512], szColor[3], access[3], len, keys; access = (get_user_flags(id) & BM_ADMIN_LEVEL ? "\w" : "\d"); formatex(szColor, 3, access) <3572> len = format(MenuBody, 511, "\y%sLight Options Menu", gszPrefix); len += format(MenuBody[len], 511-len, "^n\r1. %sLoad from file", szColor); len += format(MenuBody[len], 511-len, "^n\r2. %sDelete all lights", szColor); len += format(MenuBody[len], 511-len, "^n\r3. %sSave to file", szColor); len += format(MenuBody[len], 511-len, "^n\r4. %sEditing Amount: \y%i^n", szColor, editing_value[id]); len += format(MenuBody[len], 511-len, "^n\r6. %sSwitch Noclip", szColor); len += format(MenuBody[len], 511-len, "^n\r7. %sSwitch GodMode^n", szColor); len += format(MenuBody[len], 511-len, "^n\r0. \wBack"); keys = ( 1<<9 ); if(get_user_flags(id) & BM_ADMIN_LEVEL) keys |= ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<5 | 1<<6 ); show_menu(id, keys, MenuBody, -1, "OptionMenu"); }
PHP Code:
public ShowColorMenu( id ) { new MenuBody[512], szColor[3], access[3], len, keys; access = (get_user_flags(id) & BM_ADMIN_LEVEL ? "\w" : "\d"); formatex(szColor, 3, access) <3595> len = format(MenuBody, 511, "\y%sColor Selection Menu^n\r[R: \y%i \r| G: \y%i \r| B: \y%i\r]", gszPrefix, light_properites[id][1], light_properites[id][2],light_properites[id][3]); len += format(MenuBody[len], 511-len, "^n\r1. %sRed +", szColor); len += format(MenuBody[len], 511-len, "^n\r2. %sRed -", szColor); len += format(MenuBody[len], 511-len, "^n\r3. %sGreen +", szColor); len += format(MenuBody[len], 511-len, "^n\r4. %sGreen -", szColor); len += format(MenuBody[len], 511-len, "^n\r5. %sBlue +", szColor); len += format(MenuBody[len], 511-len, "^n\r6. %sBlue -^n", szColor); len += format(MenuBody[len], 511-len, "^n\r9. \wColor Templates^n"); len += format(MenuBody[len], 511-len, "^n\r0. \wBack"); keys = ( 1<<8 | 1<<9 ); if(get_user_flags(id) & BM_ADMIN_LEVEL) keys |= ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5 );
show_menu( id, keys, MenuBody, -1, "ColorMenu" ); }
PHP Code:
public ShowTemplatesMenu( id ) { new MenuBody[512], szColor[3], access[3], len, keys; access = (get_user_flags(id) & BM_ADMIN_LEVEL ? "\w" : "\d"); formatex(szColor, 3, access) <3619> len = format(MenuBody, 511, "\y%sChoose Color Template:", gszPrefix); len += format(MenuBody[len], 511-len, "^n\r1. %sWhite", szColor); len += format(MenuBody[len], 511-len, "^n\r2. %sRed", szColor); len += format(MenuBody[len], 511-len, "^n\r3. %sGreen", szColor); len += format(MenuBody[len], 511-len, "^n\r4. %sBlue", szColor); len += format(MenuBody[len], 511-len, "^n\r5. %sAqua", szColor); len += format(MenuBody[len], 511-len, "^n\r6. %sYellow", szColor); len += format(MenuBody[len], 511-len, "^n\r7. %sOrange", szColor); len += format(MenuBody[len], 511-len, "^n\r8. %sPink^n", szColor); len += format(MenuBody[len], 511-len, "^n\r0. \wBack"); keys = ( 1<<9 ); if(get_user_flags(id) & BM_ADMIN_LEVEL) keys |= ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5 | 1<<6 | 1<<7 );
show_menu( id, keys, MenuBody, -1, "TemplatesMenu" ); }
PHP Code:
public handleLightMenu( id, key ) { new szName[33]; get_user_name(id, szName, 32); switch(key + 1) { case 1: { light_properites[id][0] += editing_value[id]; if(light_properites[id][0] > 40) { light_properites[id][0] = 40; } ShowLightMenu( id ); } case 2: { CreateLightAiming( id ) <3965> ShowLightMenu( id ); } case 3: { light_properites[id][0] -= editing_value[id]; if(light_properites[id][0] <= 0) { light_properites[id][0] = 5; } ShowLightMenu( id ); } case 4: { DeleteLight(id); ShowLightMenu(id);
PHP Code:
CreateLightAiming( id ) { new origin[ 3 ], Float:vOrigin[ 3 ]; new Float:flCrosshairPitch = get_pdata_float( id, 506 ) // m_flCrosshairPitch = 506; <4681> get_user_origin( id, origin, 3 ); IVecFVec( origin, vOrigin ); if(0.0 <= flCrosshairPitch <= 100.0) { vOrigin[ 2 ] -= gLightMaxY[ 2 ]; } else vOrigin[ 2 ] += gLightMaxY[ 2 ]; new iRadius = light_properites[id][0]; new iR = light_properites[id][1]; new iG = light_properites[id][2]; new iB = light_properites[id][3]; CreateLight( vOrigin, iRadius, iR, iG, iB ); }
|
|