sscanf warning...
#1

http://pastebin.com/Q1zXj9K5

Why the hell does that sscanf buffer overflow when there is plenty of space?

Also why doesn't it enter the if statement when the statement is correct, along with the data...

Thanks
Reply
#2

try

pawn Код:
if(!sscanf(strstringer,"p<,>s[24]fffdd",DrugPlants[playerid][d][DrugOwner], DrugPlants[playerid][d][DrugPositionX], DrugPlants[playerid][d][DrugPositionY], DrugPlants[playerid][d][DrugPositionZ], DrugPlants[playerid][d][DrugSize], DrugPlants[playerid][d][DrugFertilized]))
Reply
#3

Quote:
Originally Posted by stabker
Посмотреть сообщение
try

pawn Код:
if(!sscanf(strstringer,"p<,>s[24]fffdd",DrugPlants[playerid][d][DrugOwner], DrugPlants[playerid][d][DrugPositionX], DrugPlants[playerid][d][DrugPositionY], DrugPlants[playerid][d][DrugPositionZ], DrugPlants[playerid][d][DrugSize], DrugPlants[playerid][d][DrugFertilized]))
Tyvm
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)