Hallo
Ich habe ein kleines System, welches aber nicht geht, das Pickup wird nicht erstellt und es wird auch nicht in die Serverlog :
//Businesssystem für den Server
new shopline[255],File:shopx = fopen("Business/BusinessInfo.txt", io_read), shop_index;
new id;
new BoughtShops;
if(shopx)
{
while(fread(shopx,shopline))
{
strmid(ShopInfo[id][ShopName],strtok(shopline,shop_index,','),0,MAX_PLAYER_NAME,MAX_PLAYER_NAME);
ShopInfo[id][ShopTyp] = strval(strtok(shopline,shop_index,','));
ShopInfo[id][ShopKonto] = strval(strtok(shopline,shop_index,','));
ShopInfo[id][ShopLager] = strval(strtok(shopline,shop_index,','));
ShopInfo[id][ShopX] = floatstr(strtok(shopline,shop_index,','));
ShopInfo[id][ShopY] = floatstr(strtok(shopline,shop_index,','));
ShopInfo[id][ShopZ] = floatstr(strtok(shopline,shop_index,','));
ShopInfo[id][ShopWert] = strval(strtok(shopline,shop_index,','));
ShopInfo[id][ShopErtrag] = strval(strtok(shopline,shop_index,','));
strmid(ShopInfo[id][ShopBesitzer],strtok(shopline,shop_index,','),0,MAX_PLAYER_NAME,MAX_PLAYER_NAME);
ShopInfo[id][ShopVerkauft] = strval(strtok(shopline,shop_index,','));
ShopInfo[id][PickupNr] = CreatePickup(1273, 1, ShopInfo[id][ShopX], ShopInfo[id][ShopY], ShopInfo[id][ShopZ]);
if(ShopInfo[id][ShopVerkauft] == 1)
{
BoughtShops++;
}
printf("Shop erstellt");
id++;
}
fclose(shopx);
}
Weiss jemand, wora das liegen kann ? Der Shop Name kann auch zweiteilig sein, zB Mac Donald.
MfG dUDALUS