29.11.2012, 00:42
Quote:
printf("value: %s", thevar);
Change %s in %i if it's an integer. |
Код:
stock SetPlayerFishes(playerid, weight, fishes, fishingtool, worms) { new file[256], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(file, sizeof(file), "%s.ost", name); dini_IntSet(file, "Weight", weight); dini_IntSet(file, "Fishes", fishes); dini_IntSet(file, "Fishingrod", fishingtool); dini_IntSet(file, "Baits", worms); printf("Weight: %d, Fishes: %d, Rod: %d, Baits: %d", weight, fishes, fishingtool, worms); return true; }