22.05.2013, 18:40
pawn Код:
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
error 017: undefined symbol "strtok"
symbol is assigned a value that is never used: "index"
undefined symbol "strtok"
array must be indexed (variable "cmd")
undefined symbol "strtok"
array must be indexed (variable "tmp")
undefined symbol "strtok"
array must be indexed (variable "tmp")
undefined symbol "strtok"
array must be indexed (variable "tmp")
undefined symbol "strtok"
array must be indexed (variable "tmp")
undefined symbol "strtok"
array must be indexed (variable "tmp")
error 017: undefined symbol "strtok"
array must be indexed (variable "tmp")
undefined symbol "strtok"
error 033: array must be indexed (variable "tmp")
pawn Код:
new File:temp;
new index = 0;
new tmp[256];
new modelid, Float:X, Float:Y, Float:Z, Float:ang, Cor1, Cor2;
temp = fopen("carros.txt", io_readwrite);
while(fread(temp, tmp, sizeof(tmp), false)) {
index = 0;
modelid = strval(strtok(tmp, index));
X = Float:floatstr(strtok(tmp, index));
Y = Float:floatstr(strtok(tmp, index));
Z = Float:floatstr(strtok(tmp, index));
ang = Float:floatstr(strtok(tmp, index));
Cor1 = strval(strtok(tmp, index));
Cor2 = strval(strtok(tmp, index));
cAddStaticVehicleEx(modelid, X, Y, Z, ang, Cor1, Cor2, 9999999999);
}
fclose(temp);
new Float:CasaXx, Float:CasaYx, Float:CasaZx;
temp = fopen("Casa.cfg", io_readwrite);
while(fread(temp, tmp, sizeof(tmp), false)) {
index = 0;
CasaXx = Float:floatstr(strtok(tmp, index));
CasaYx = Float:floatstr(strtok(tmp, index));
CasaZx = Float:floatstr(strtok(tmp, index));
CreatePickup(1273, 1, CasaXx, CasaYx, CasaZx, -1);
if(!strlen(tmp)){
4049 - tmp = strtok(cmdtext, idx);
tmp = strtok(cmdtext, idx);