28.11.2013, 14:21
Quote:
Why did you put [] in the forward/public ? you should add it only when it's a string.. and in that case it's an int.
|
---
The 3rd parameter should be an integer and you used it as an array.
pawn Код:
stock LogVehicleTransfer(seller[], buyer[], sellprice, senderid)
{
new str[512], clean_name[MAX_PLAYER_NAME], clean_oname[MAX_PLAYER_NAME];
mysql_real_escape_string(seller, clean_name);
mysql_real_escape_string(buyer, clean_oname);
format(str, sizeof(str), "INSERT INTO rp_vehicle_transfer_logs (seller,buyer,price) VALUES ('%s','%s',%d)", clean_name, clean_oname, sellprice);
mysql_query(str, player_threads_alt[sellerid]);
}
pawn Код:
LogVehicleTransfer(oname, name, sellprice, playerid);
oname -> string
name -> string
sellprice -> integer
playerid -> integer