cali-house
#1

D:\CNR\filterscripts\cali-houses.pwn(219) : error 021: symbol already defined: "strtok"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Quote:

strtok(const string[], &index)
{
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;
}

Help!!
Reply
#2

Its already defined, delete it.
Reply
#3

at your gamemode on up do this

Quote:

new strtok;

Reply
#4

Quote:
Originally Posted by ScripteRNaBEEL
Посмотреть сообщение
at your gamemode on up do this
What?
Reply
#5

Quote:
Originally Posted by ScripteRNaBEEL
Посмотреть сообщение
at your gamemode on up do this
pawn Код:
error 021: symbol already defined: "strtok"
Nabeel the error is saying that the symbol is already defined so there's no use to define it once again and that's not how you define a function.
Reply
#6

ops sorry faisal bro...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)