4 Errors one line
#1

this is the line
pawn Код:
format(string, sizeof(string), "Geographical Location: %s | Playing Hours: %d | Materials: %d | House: %d | Business: %d", "LastIP")) , dini_Int(string2, "PlayingHours"),  dini_Int(string2, "Materials"), dini_Int(string2, "House"), dini_Int(string2, "Business"));
and these are the errors
pawn Код:
(21383) : error 001: expected token: ";", but found ")"
(21383) : error 029: invalid expression, assumed zero
(21383) : error 029: invalid expression, assumed zero
(21383) : fatal error 107: too many error messages on one line
and just in case you are needing this is the chunk of code that goes with it
pawn Код:
else
                                {
                                    format(string, sizeof(string), "Name: %s | Admin Level: %d | Last IP: %s | Last Login: %d/%d/%d | Time: %d:%d | Status: Unbanned.", Name, dini_Int(string2, "AdminLevel"), dini_Get(string2, "LastIP"), dini_Int(string2, "LastLoginDay"), dini_Int(string2, "LastLoginMonth"), dini_Int(string2, "LastLoginYear"), dini_Int(string2, "LastLoginHour"), dini_Int(string2, "LastLoginMinute"));
                                    SendClientMessage(playerid, GREY, string);
                                    format(string, sizeof(string), "Geographical Location: %s | Playing Hours: %d | Materials: %d | House: %d | Business: %d", "LastIP")) , dini_Int(string2, "PlayingHours"),  dini_Int(string2, "Materials"), dini_Int(string2, "House"), dini_Int(string2, "Business"));
                                    SendClientMessage(playerid, GREY, string);
                                    format(string, sizeof(string), "Cocaine: %d grams | Pot: %d grams | Faction: %d (%s)", dini_Int(string2, "Crack"), dini_Int(string2, "Pot"), dini_Int(string2, "Faction"), Factions[dini_Int(string2, "Faction")][FactionName]);
                                    SendClientMessage(playerid, GREY, string);
                                }
                            }
any help is Hugely appreciated, Thanks
Reply
#2

pawn Код:
format(string2, sizeof(string2), "Geographical Location: %s | Playing Hours: %d | Materials: %d | House: %d | Business: %d", "LastIP")) , dini_Int(string2, "PlayingHours"),  dini_Int(string2, "Materials"), dini_Int(string2, "House"), dini_Int(string2, "Business");

I'm not sure but try
Reply
#3

format(string, sizeof(string), "Geographical Location: %s | Playing Hours: %d | Materials: %d | House: %d | Business: %d", LastIP, dini_Int(string2, "PlayingHours"), dini_Int(string2, "Materials"), dini_Int(string2, "House"), dini_Int(string2, "Business"));

You made two )) after "
Reply
#4

ok, thanks to you guys i now only have these two
pawn Код:
(21383) : error 001: expected token: ";", but found ")"
(21383) : error 029: invalid expression, assumed zero
the line that im using is
pawn Код:
format(string2, sizeof(string2), "Geographical Location: %s | Playing Hours: %d | Materials: %d | House: %d | Business: %d", "LastIP")) , dini_Int(string2, "PlayingHours"),  dini_Int(string2, "Materials"), dini_Int(string2, "House"), dini_Int(string2, "Business");
Reply
#5

Look at the line that Johndaonee posted.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)