Рекомендованные сообщения



2 posts in this topic

В общем вот все что нужно:

Спойлер

stock UpdatePlayerRadar(playerid)
{
	if(radar_time[playerid] > gettime()) return 1;
	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
		for(new r = 1; r <= TOTALRADAR; r++)
		{
			if(IsPlayerInRangeOfPoint(playerid, 30.0, RI[r][r_x], RI[r][r_y], RI[r][r_z]) && GetVehicleSpeed(playerid) > RI[r][r_speed])
			{
			    radar_time[playerid] = gettime() + 10;
			    give_player_money(playerid,-RADAR_TICKET * (GetVehicleSpeed(playerid) - RI[r][r_speed]));
 	 		    mysql_tquery(dbHandle, query, "", ""); //вот здесь ошибка
				GameTextForPlayer(playerid, "~r~B‘ OЋTPAЃOBAH‘!", 3000, 4);
				SendClientMessage(playerid, -1, "{36B91B}[Радар] {FFFFFF}Вас сфотографировал радар ГИБДД. Причина: превышение скорости");
				SendClientMessage(playerid, -1, "{36B91B}[Радар] {FFFFFF}Максимально-допустимая скорость на данном участке: %d км/ч, зафиксированная Вами: %d км/ч.", RI[r][r_speed], GetVehicleSpeed(playerid));
				SendClientMessage(playerid, -1, "{36B91B}[Радар] {FFFFFF}Сумма штрафа составила: %d рублей. Деньги были сняты с Вашего счета.", RADAR_TICKET * (GetVehicleSpeed(playerid) - RI[r][r_speed]));
			}
		}
	}
	return true;
}

 

Ошибка:C:\Users\Александр\Desktop\VirtualTech RP\gamemodes\new.pwn(22640) : error 017: undefined symbol "query"

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Zaire
      By Zaire
      CMD:ban(playerid, params[]) { if(!PlayerInfo[playerid][pLogged]) return true; if(PlayerInfo[playerid][pAdmin] < 3 || AdminLogged[playerid] == false) return true; if(sscanf(params, "uis[64]", params[0], params[1], params[2])) return SendClientMessage(playerid, COLOR_GREY, "Èñïîëüçîâàíèå: /ban [id/íèê èãðîêà] [êîë-âî äíåé] [ïðè÷èíà]"); if(!IsPlayerConnected(params[0]) || params[0] == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, ""TPLAYEROFFLINE""); if(!PlayerInfo[params[0]][pLogged]) return SendClientMessage(playerid, COLOR_GREY, ""TPLAYERNLOGGED""); if(PlayerInfo[params[0]][pDebugUser]) return SendClientMessage(playerid, COLOR_GREY, ""TPLAYEROFFLINE""); if(PlayerInfo[params[0]][pAdmin] >= 1339) return SendClientMessage(playerid, COLOR_GREY, "Ýòîò èãðîê Îñíîâàòåëü! Åãî íå âîçìîæíî çàáëîêèðîâàòü!"); if(params[1] > 365 && params[1] != -1 || params[1] < 1 && params[1] != -1 ) return SendClientMessage(playerid, COLOR_GREY, "Êîë-âî äíåé îò 1 äî 365!"); if(params[1] == -1 && PlayerInfo[playerid][pAdmin] < 1339) return SendClientMessage(playerid, COLOR_GREY, "Âû íå ìîæåòå çàáëîêèðîâàòü èãðîêà íàâñåãäà!"); if(!AddPlayerBan(params[0], playerid, params[1], params[2])) {