I need help strtok problem
#1

Hello my server emits warning symbol strtok.
And I do not know what I do.
I hope to get help.
But this warning emitted when triggers include
which they will include a warning to

Код:
//**PRAGMAS**//
#pragma tabsize 0
#pragma unused ret_memcpy

//**FORWARDS**//
forward ToD_OnPlayerDisconnect(playerid);
forward ToD_OnPlayerConnect(playerid);

//**NEWS**//
new pname[MAX_PLAYER_NAME];
new oyunism[48];
/*---------------------------------CallBacks-------------------------------------*/
public ToD_OnPlayerDisconnect(playerid){
GetPlayerName(playerid, pname, sizeof(pname));
format(oyunism, sizeof(oyunism), "/Saver/%s.ini",pname);
if(!dini_Exists(oyunism))
{
}
else
{
dini_IntSet(oyunism, "Score", GetPlayerScore(playerid));
dini_IntSet(oyunism, "Money", GetPlayerMoney(playerid));
}
}
public ToD_OnPlayerConnect(playerid){
GetPlayerName(playerid, pname, sizeof(pname));
format(oyunism, sizeof(oyunism), "/Saver/%s.ini",pname);
if(!dini_Exists(oyunism))
{
dini_Create(oyunism);
dini_IntSet(oyunism, "Score", 0);
dini_IntSet(oyunism, "Money", 0);
SetPlayerScore(playerid, dini_Int(oyunism, "Score"));
SetPlayerMoney(playerid, dini_Int(oyunism, "Money"));
}
else
{
SetPlayerScore(playerid, dini_Int(oyunism, "Score"));
SetPlayerMoney(playerid, dini_Int(oyunism, "Money"));
}
return 1;
}
Reply
#2

Код:
C:\Documents and Settings\Administrator\My Documents\Server\gamemodes\DM.pwn(308) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply
#3

thats all right you just never use strtok if you just want to get rid of the warning comment out strtok or at the top go
#pragma unused strtok
Reply
#4

Код:
thats all right you just never use strtok   if you just want to get rid of the warning comment out strtok or at the top go 
#pragma unused strtok
Thank you very much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)