Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock changeintomysql(BizID)
- {
- new Float:x = BizInfo[BizID][biz_x], Float:y = BizInfo[BizID][biz_y], Float:z = BizInfo[BizID][biz_z], name[128], preis = BizInfo[BizID][biz_preis], besitzer[128], innenraum = BizInfo[BizID][biz_innenraum];
- mysql_real_escape_string(BizInfo[BizID][biz_name], name);
- mysql_real_escape_string(BizInfo[BizID][biz_besitzer], besitzer);
- new query[512];
- format(query, sizeof(query), "INSERT INTO 'bisz' ('BizdID', 'x', 'y', 'z', 'name', 'preis', 'besitzer', 'innenraum') VALUES (%d, %f, %f, %f, '%s', %d, '%s', %d)", BizID, x, y, z, name, preis, besitzer, innenraum);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment