29.07.2015, 00:39
Код:
D:\New folder\gamemodes\RunStrike.pwn(13983) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(13983) : warning 213: tag mismatch D:\New folder\gamemodes\RunStrike.pwn(13984) : error 017: undefined symbol "mysql_store_result" D:\New folder\gamemodes\RunStrike.pwn(13985) : error 017: undefined symbol "mysql_fetch_int" D:\New folder\gamemodes\RunStrike.pwn(13986) : error 017: undefined symbol "mysql_free_result" D:\New folder\gamemodes\RunStrike.pwn(13992) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(13995) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(13996) : error 017: undefined symbol "mysql_store_result" D:\New folder\gamemodes\RunStrike.pwn(13997) : error 017: undefined symbol "mysql_num_rows" D:\New folder\gamemodes\RunStrike.pwn(13998) : error 017: undefined symbol "mysql_free_result" D:\New folder\gamemodes\RunStrike.pwn(14043) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(14045) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(14047) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(14049) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(14051) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(14053) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(14055) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(14057) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(14059) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(14061) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(14063) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(14065) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(14067) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(14069) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(14071) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(14073) : error 035: argument type mismatch (argument 1) D:\New folder\gamemodes\RunStrike.pwn(14075) : error 035: argument type mismatch (argument 1) Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
Код:
new CheckStock[128]; new result; new numarStoc; format(CheckStock,sizeof(CheckStock),"SELECT stoc FROM stocds WHERE modelid='%i'", VehDSmod[playerid]); result = mysql_query(CheckStock); mysql_store_result(); numarStoc = mysql_fetch_int(result); mysql_free_result(); printf("%i", numarStoc); if(numarStoc >= 1) { numarStoc--; format(CheckStock,sizeof(CheckStock),"UPDATE stocds SET stoc='%i' WHERE modelid='%i'", numarStoc, VehDSmod[playerid]); mysql_query(CheckStock); numarStoc = 0; new idd; mysql_query("SELECT * FROM `cars`"); mysql_store_result(); idd = mysql_num_rows()+1; mysql_free_result(); format(string, sizeof(string), "%s",ArIsim[VehDSmod[playerid]-400]); strmid(vInfo[idd][vOwner], sendername, 0, strlen(sendername), 999); new rand; rand = random(sizeof(VehicleSpawns)); new rand1; new rand2; rand1 = random(sizeof(FlySpawns)); rand2 = random(sizeof(BoatSpawns)); if(dialogid == 180) { vInfo[idd][vCariD] = VehDSmod[playerid]; vInfo[idd][vPrice] = VehDSpret[playerid]; vInfo[idd][vPosX] = VehicleSpawns[rand][0]; vInfo[idd][vPosY] = VehicleSpawns[rand][1]; vInfo[idd][vPosZ] = VehicleSpawns[rand][2]; } if(dialogid == 181) { vInfo[idd][vCariD] = VehDSmod[playerid]; vInfo[idd][vPrice] = VehDSpret[playerid]; vInfo[idd][vPosX] = VehicleSpawns[rand][0]; vInfo[idd][vPosY] = VehicleSpawns[rand][1]; vInfo[idd][vPosZ] = VehicleSpawns[rand][2]; } if(dialogid == 182) { vInfo[idd][vCariD] = VehDSmod[playerid]; vInfo[idd][vPrice] = VehDSpret[playerid]; vInfo[idd][vPosX] = BoatSpawns[rand2][0]; vInfo[idd][vPosY] = BoatSpawns[rand2][1]; vInfo[idd][vPosZ] = BoatSpawns[rand2][2]; } if(dialogid == 183) { vInfo[idd][vCariD] = VehDSmod[playerid]; vInfo[idd][vPrice] = VehDSpret[playerid]; vInfo[idd][vPosX] = FlySpawns[rand1][0]; vInfo[idd][vPosY] = FlySpawns[rand1][1]; vInfo[idd][vPosZ] = FlySpawns[rand1][2]; } vInfo[idd][vOwner] = 1; vInfo[idd][vVechime] = 0; AddStaticVehicle(vInfo[idd][vCariD],vInfo[idd][vPosX],vInfo[idd][vPosY],vInfo[idd][vPosZ],0,0,0); format(string, sizeof(string),"INSERT INTO cars (id, Model) VALUES (%d, %d)", idd, vInfo[idd][vCariD]); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Locationx='%f' WHERE id=%d", vInfo[idd][vPosX], idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Locationy='%f' WHERE id=%d", vInfo[idd][vPosY], idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Locationz='%f' WHERE id=%d", vInfo[idd][vPosZ], idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Angle='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET SaLocationx='%f' WHERE id=%d", vInfo[idd][vPosX], idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET SaLocationy='%f' WHERE id=%d", vInfo[idd][vPosY], idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET SaLocationz='%f' WHERE id=%d", vInfo[idd][vPosZ], idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET SaAngle='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET ColorOne='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET ColorTwo='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Value='%d' WHERE id=%d", vInfo[idd][vPrice], idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET License='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Owned='1' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Owner='%s' WHERE id=%d", vInfo[idd][vOwner], idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Lockk='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Exploded='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Num='BLAZZED' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Component00='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Component01='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Component02='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Component03='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Component04='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Component05='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Component06='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Component07='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Component08='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Component09='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Component10='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Component11='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Component12='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET Component13='0' WHERE id=%d", idd); mysql_query(string); format(string, sizeof(string), "UPDATE cars SET KM='0' WHERE id=%d", idd); mysql_query(string); if(dialogid == 180 && PlayerInfo[playerid][pCar1] == 999) { PlayerInfo[playerid][pCar1] = idd; format(string, sizeof(string), "UPDATE players SET Car='%d' WHERE id=%d", PlayerInfo[playerid][pCar1], PlayerInfo[playerid][pSQLID]); mysql_query(string); GivePlayerMoneyEx(playerid, - VehDSpret[playerid]); new string1[128]; format(string1, sizeof(string1), "Felicitari! Ai achizitionat un vehicul! Valoare: %d | slot #1]!", vInfo[idd][vPrice]); SendClientMessage(playerid, -1, string1); SendClientMessage(playerid, -1, "Tasteaza /vinfo pentru a afla locatia noului tau vehicul!"); return 1; } else if(dialogid == 181) { PlayerInfo[playerid][pCar2] = idd; format(string, sizeof(string), "UPDATE players SET Car2='%d' WHERE id=%d", PlayerInfo[playerid][pCar2], PlayerInfo[playerid][pSQLID]); mysql_query(string); GivePlayerMoneyEx(playerid, - VehDSpret[playerid]); new string1[128]; format(string1, sizeof(string1), "Felicitari! Ai achizitionat o motocicleta! Valoare: %d | slot #2]!", vInfo[idd][vPrice]); SendClientMessage(playerid, -1, string1); SendClientMessage(playerid, -1, "Tasteaza /vinfo pentru a afla locatia noului tau vehicul!"); return 1; } else if(dialogid == 182) { PlayerInfo[playerid][pCar3] = idd; format(string, sizeof(string), "UPDATE players SET Car3='%d' WHERE id=%d", PlayerInfo[playerid][pCar3], PlayerInfo[playerid][pSQLID]); mysql_query(string); GivePlayerMoneyEx(playerid, - VehDSpret[playerid]); new string1[128]; format(string1, sizeof(string1), "Felicitari! Ai achizitionat o barca! Valoare: %d | slot #3]!", vInfo[idd][vPrice]); SendClientMessage(playerid, -1, string1); SendClientMessage(playerid, -1, "Tasteaza /vinfo pentru a afla locatia noului tau vehicul!"); return 1; } else if(dialogid == 183) { PlayerInfo[playerid][pCar3] = idd; format(string, sizeof(string), "UPDATE players SET Car3='%d' WHERE id=%d", PlayerInfo[playerid][pCar3], PlayerInfo[playerid][pSQLID]); mysql_query(string); GivePlayerMoneyEx(playerid, - VehDSpret[playerid]); new string1[128]; format(string1, sizeof(string1), "Felicitari! Ai achizitionat un avion/elicopter! Valoare: %d | slot #4]!", vInfo[idd][vPrice]); SendClientMessage(playerid, -1, string1); SendClientMessage(playerid, -1, "Tasteaza /vinfo pentru a afla locatia noului tau vehicul!"); return 1; } } else return SendClientMessage(playerid,COLOR_WHITE,"Aceasta masina nu mai este in stoc."); } else { SendClientMessage(playerid, -1, "Nu ai suficienti bani."); return 1; } }