24.06.2014, 19:20
Quote:
|
I don't see any 127. Show the code of how vehicleid variable was set when getting the vehicleid?
|
Код:
stock GetPlayerAvailableSlot(playerid)
{
for(new i = 1, j = MAX_PLAYER_VEHICLES; i <= j; i++)
{
format(smallmessage, sizeof(smallmessage), "VEHICLE%d", i);
if(GetPVarInt(playerid, smallmessage) == -1) return smallmessage;
}
return smallmessage;
}
Quote:
|
Field is probably set to tinyint. MySQL forces values in range. But you should probably rethink your database design anyway. Adding a number to a field name is bad. Using a string as a key is bad.
|
Код:
format(message, sizeof(message), "UPDATE members SET %s='%d' WHERE Username = '%s'", slot, 100, getname[playerid]);


