13.06.2011, 20:07
Hey guys Im making a vehicle system and when I compile I get these errors. Anyone know whats wrong?
Код:
C:\Users\zack\Desktop\SAMP03CSVR_WIN32 (1)\gamemodes\MYSQLgm.pwn(401) : error 035: argument type mismatch (argument 1) C:\Users\zack\Desktop\SAMP03CSVR_WIN32 (1)\gamemodes\MYSQLgm.pwn(402) : error 035: argument type mismatch (argument 1) C:\Users\zack\Desktop\SAMP03CSVR_WIN32 (1)\gamemodes\MYSQLgm.pwn(465) : warning 217: loose indentation
pawn Код:
stock LoadCars(playerid)
{
new query[100], stats[1000], Type[100],ID[100],Owner[100],X[100],Y[100],Z[100],A[25],R[25],C1[5],C2[5];
format(query, sizeof(query), "SELECT * FROM `vehicles` WHERE `Owner` = '%s'", Name(playerid));
mysql_query(query);
mysql_store_result();
if(mysql_num_rows())
{
if(mysql_fetch_row_format(stats))
{
sscanf(stats, "p<|>ds[100]dddddddd", SetPVarString(playerid, "ID", stats), SetPVarString(playerid, "Owner", stats), SetPVarString(playerid, "X", stats),SetPVarString(playerid, "Y", stats),SetPVarString(playerid, "Z", stats),SetPVarString(playerid, "A", stats),SetPVarString(playerid, "R", stats),SetPVarString(playerid, "C1", stats),SetPVarString(playerid, "C2", stats),SetPVarString(playerid, "Type", stats));
GetPVarString(playerid, "Type", Type, sizeof(Type));
GetPVarString(playerid, "ID", ID, sizeof(ID));
GetPVarString(playerid, "Owner", Owner, sizeof(Owner));
GetPVarString(playerid, "X", X, sizeof(X));
GetPVarString(playerid, "Y", Y, sizeof(Y));
GetPVarString(playerid, "Z", Z, sizeof(Z));
GetPVarString(playerid, "A", A, sizeof(A));
GetPVarString(playerid, "R", R, sizeof(R));
GetPVarString(playerid, "C1", C1, sizeof(C1));
GetPVarString(playerid, "C2", C2, sizeof(C2));
CreateVehicle(Type,X,Y,Z,R,C1,C2,60000);
Attach3DTextLabelToVehicle(Vehicle,ID,0,10,0);
}
}
}