Array index out of bounds
#1

FIXED
Reply
#2

Change this

pawn Код:
saveCarToDB(playerid,carid)
{
    new query[128];
    format(query, sizeof(query), "INSERT INTO cars (owner,model,x,y,c,r) VALUES ('%i','%i','%f','%f','%f','%f')",iInfo[playerid][id],cInfo[carid][model],iInfo[carid][c_x],iInfo[carid][c_y],iInfo[carid][c_z],iInfo[carid][c_r]);
    mysql_function_query(dbhandel,query,false,"","");
    return 1;
}
to

pawn Код:
saveCarToDB(playerid,carid)
{
    new query[128];
    format(query, sizeof(query), "INSERT INTO cars (owner,model,x,y,c,r) VALUES ('%i','%i','%f','%f','%f','%f')",iInfo[playerid][id],cInfo[carid][model],cInfo[carid][c_x],cInfo[carid][c_y],cInfo[carid][c_z],cInfo[carid][c_r]);
    mysql_function_query(dbhandel,query,false,"","");
    return 1;
}
Off:
What does "kurcina" mean? :P
Reply
#3

Thank you I didn't even notice my typos...

Off: Kurcina means huge d*ck
Reply
#4

No errors now but it dosen't save the car in the database, here's the mysql log
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)