28.11.2013, 14:00
(
Последний раз редактировалось Jony_Cruze; 28.11.2013 в 14:55.
)
pawn Код:
forward LogVehicleTransfer(seller[],buyer[],sellprice[],senderid);
16236-public LogVehicleTransfer(seller[],buyer[],sellprice[],senderid)
{
new str[512];
new clean_sellprice[64];
new clean_name[MAX_PLAYER_NAME];
new clean_oname[MAX_PLAYER_NAME];
mysql_real_escape_string(seller,clean_name);
mysql_real_escape_string(buyer,clean_oname);
mysql_real_escape_string(sellprice,clean_sellprice);
format(str,sizeof(str),"INSERT INTO rp_vehicle_transfer_logs (seller,buyer,price) VALUES ('%s','%s','%d')",clean_name,clean_oname,clean_sellprice);
mysql_query(str,player_threads_alt[sellerid]);
}
12863-LogVehicleTransfer(oname,name,sellprice,playerid);
pawn Код:
C:\Users\Filip\Desktop\SERVER\gamemodes\rp.pwn(12863) : error 035: argument type mismatch (argument 3)
C:\Users\Filip\Desktop\SERVER\gamemodes\rp.pwn(16236) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.