07.07.2016, 18:32
Well, in the CMD everything is working fine just one thing, once the pickup create it appears 'SERVER: Unknown command.' is that normal?
The problem is only in the CMD, the others commands is working without the message.
PHP код:
CMD:createpickupjob(playerid, params[])
{
for(new r = 0; r < sizeof(InfoTextDrawJob); r++)
{
new idpickup, jobtype[64], nivrequis, vwtd=-1, INTTDPick;
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if(sscanf(params,"isii", idpickup, jobtype, nivrequis, INTTDPick)) return SendClientMessage(playerid, -1,"[CMD]: /createpickupjob [IDPickup] [Job] [Niv] [PickupINT]");
CreateDynamicPickup(idpickup, 1, x, y, z, vwtd);
InfoTextDrawJob[r][LevelRQ] = nivrequis;
InfoTextDrawJob[r][InTextX] = x;
InfoTextDrawJob[r][InTextY] = y;
InfoTextDrawJob[r][InTextZ] = z;
InfoTextDrawJob[r][IDPickup] = idpickup;
InfoTextDrawJob[r][PickupVW] = vwtd;
InfoTextDrawJob[r][PickupINT] = INTTDPick;
new query[450];
mysql_format(g_iHandle, query, sizeof(query), "INSERT INTO `srv_td_job` (`InTextX` ,`InTextY`,`InTextZ`) VALUES (%f, %f, %f)", x, y, z);
mysql_tquery(g_iHandle, query);
break;
}
return 1;
}