I need help strtok problem - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I need help strtok problem (
/showthread.php?tid=151007)
I need help strtok problem -
Montis123 - 28.05.2010
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;
}
Re: I need help strtok problem -
Montis123 - 28.05.2010
Код:
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.
Re: I need help strtok problem -
(SF)Noobanatior - 28.05.2010
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
Re: I need help strtok problem -
Montis123 - 28.05.2010
Код:
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