sizeof error
#3

pawn Код:
GetPlayerName(id, PlayerName, sizeof(PlayerName));
Why are you doing this AFTER using the variable in the string?

Also:
pawn Код:
if(sscanf(params,"dds",id,time,reason))
is deprecated. Use s[size] instead of just "s". For example:
pawn Код:
if(sscanf(params,"dds[100]",id,time,reason))
Reply


Messages In This Thread
sizeof error - by Hybris - 13.03.2015, 20:58
Re: sizeof error - by Hybris - 13.03.2015, 21:03
Re: sizeof error - by HazardouS - 13.03.2015, 21:09
Re: sizeof error - by Evocator - 13.03.2015, 21:12
Re: sizeof error - by NoDi522 - 13.03.2015, 21:12
Respuesta: sizeof error - by JuanStone - 13.03.2015, 21:17
Re: Respuesta: sizeof error - by Hybris - 13.03.2015, 21:26
Respuesta: sizeof error - by JuanStone - 13.03.2015, 21:38
Re: sizeof error - by Hybris - 13.03.2015, 21:48
Respuesta: sizeof error - by JuanStone - 13.03.2015, 21:54

Forum Jump:


Users browsing this thread: 3 Guest(s)