#1

How can I delete string in code below? :
PHP код:
stock mS_strtok(const string[], &index// Line 698
{
    new 
length strlen(string);
    while ((
index length) && (string[index] <= ' '))
    {
        
index++;
    }
    new 
offset index;
    new 
result[20];
    while ((
index length) && (string[index] > ' ') && ((index offset) < (sizeof(result) - 1)))
    {
        
result[index offset] = string[index];
        
index++;
    }
    
result[index offset] = EOS;
    return 
result;

And also , It's mSelection Include. and string is a problem.
Error code :
PHP код:
pawno\include\mSelection.inc(698) : warning 219local variable "string" shadows a variable at a preceding level 
What should I do?
Reply
#2

You can just name it something else, so it doesn't intefere with other "string"-arrays.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)