SA-MP Forums Archive
cali-house - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: cali-house (/showthread.php?tid=521902)



cali-house - PiLLoW - 25.06.2014

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!!


Re: cali-house - RenovanZ - 25.06.2014

Its already defined, delete it.


Re: cali-house - ScripteRNaBEEL - 25.06.2014

at your gamemode on up do this

Quote:

new strtok;




Re: cali-house - ]Rafaellos[ - 25.06.2014

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


Re: cali-house - Faisal_khan - 25.06.2014

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.


Re: cali-house - ScripteRNaBEEL - 25.06.2014

ops sorry faisal bro...