FloatStr Error
#1

Hi, a have problems. In floatstr and strtok.
Error:
Код:
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
Code:
Код:
new e;
HouseInfo[x][henter_x] = floatstr(strtok(dest, e, ',')); //error
HouseInfo[x][henter_y] = floatstr(strtok(dest, e, ',')); //error
HouseInfo[x][henter_z] = floatstr(strtok(dest, e, ',')); //error
Thanks.
Reply
#2

strtok should have only 2 parameters:

pawn Код:
stock strtok(const string[], &index)
Try sscanf plugin, it makes things like this easier

pawn Код:
sscanf(dest, "p<,>fff", HouseInfo[x][henter_x], HouseInfo[x][henter_y], HouseInfo[x][henter_z]);
Sscanf download here: https://sampforum.blast.hk/showthread.php?tid=120356
Reply
#3

I'm using sscanf
Thanks Men!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)