___________________________________________
COMPILATION ERROR in Script: pps_string
Error in code at line 1:
/* Blijbol Public Plug-in System * (C) 2006 Jeroen van der Gun * * string code = pps_string ( string source [, string plugin] ) */var stop, stoplength, length, beginpos, pos, char, censors, substr, start;stop = '';stoplength = 0;length = string_length(argument0);beginpos = 0;for(pos = 1; pos <= length; pos += 1){ if(stop == '') { switch(string_copy(argument0, pos, 2)) { case '//': beginpos = pos; stoplength = 1; stop = chr(10); break; case '/*': beginpos = pos; stoplength = 2; stop = '*/'; } } else { char = string_copy(argument0, pos, stoplength); if(char == stop) { argument0 = string_delete(argument0, beginpos, pos - beginpos + stoplength); stop = ''; stoplength = 0; length = string_length(argument0); beginpos = 0; } }}censors = ds_queue_create();substr = '';start = '';for(pos = 1; pos <= length; pos += 1){ if(start == '') { switch(string_char_at(argument0, pos)) { case "'": start = "'"; break; case '"': start = '"'; } } else { char = string_char_at(argument0, pos); if(char == start) { ds_queue_enqueue(censors, substr); substr = ''; start = ''; } else { substr += char; argument0 = string_copy(argument0, 1, pos - 1) + chr(26) + string_copy(argument0, pos + 1, length - pos); } }}if(is_string(argument1)){ if(string_pos("'", argument1) == 0) { argument0 = string_replace_all(argument0, 'pps_self', "'" + argument1 + "'"); }}argument0 = string_replace_all(string_replace_all(string_replace_all( string_replace_all(string_replace_all(string_replace_all(argument0, 'execute_string', 'pps_execute'), 'execute_file', 'pps_plugin'), 'script_get_text', 'pps_get_script'), 'timeline_moment_add', 'pps_edit_timeline'), 'object_event_add', 'pps_edit_object'), 'room_set_code', 'pps_edit_room');if(pps_secure_mode){ argument0 = string_replace_all(string_replace_all(string_replace_all( string_replace_all(string_replace_all(string_replace_all(string_replace_all( string_replace_all(string_replace_all(string_replace_all(string_replace_all( string_replace_all(string_replace_all(string_replace_all(argument0, 'execute_program', 'pps_shell'), 'execute_shell', 'pps_shell'), 'action_webpage', 'pps_shell'), 'file_text_open_write', 'pps_file_write'), 'file_open_write', 'pps_file_write_old'), 'file_text_open_append', 'pps_file_append'), 'file_open_append', 'pps_file_append_old'), 'file_delete', 'pps_file_delete'), 'file_rename', 'pps_file_rename'), 'file_copy', 'pps_file_copy'), 'file_bin_open', 'pps_file_bin'), 'directory_create', 'pps_directory'), 'registry_write_string_ext', 'pps_registry'), 'registry_write_real_ext', 'pps_registry'); for(pos = 0; pos <= 8; pos += 1) { argument0 = string_replace_all(string_replace_all(argument0, 'external_define' + string(pos), 'pps_dll'), 'external_call' + string(pos), 'pps_dll'); } argument0 = string_replace_all(string_replace_all(argument0, 'external_define', 'pps_dll'), 'external_call', 'pps_dll');}repeat(ds_queue_size(censors)){ substr = ds_queue_dequeue(censors); argument0 = string_replace(argument0, string_repeat(chr(26), string_length(substr)), substr);}ds_queue_destroy(censors);return argument0;
at position 213: Variable name expected.
deze error krijg ik als ik m opstart, wat doe ik fout?
PS: ik gebruik gm7