[CMD] - SERVER: Unknown command
#8

Your command mean nothing. Why have you a loop?
Try this :
PHP код:
CMD:createpickupjob(playeridparams[]) 
{
    print(
"Starting command...")
    new 
idpickupjobtype[64], nivrequisvwtd=-1INTTDPick
    new 
Float:xFloat:yFloat:z
    
GetPlayerPos(playeridxyz); 
    if(
sscanf(params,"isii"idpickupjobtypenivrequisINTTDPick)) return SendClientMessage(playerid, -1,"[CMD]: /createpickupjob [IDPickup] [Job] [Niv] [PickupINT]"); 
    
CreateDynamicPickup(idpickup1xyzvwtd); 
    
printf("nivrequis: %i | x:%.2f | y:%.2f | z:%.2f | idpickup : %i | vwtd : %i | INTTDPick : %i"nivrequisxyzidpickupvwtdINTTDPick);
    
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]; 
    print(
"Saving MYQSL params")
    
mysql_format(g_iHandlequerysizeof(query), "INSERT INTO `srv_td_job` (`InTextX` ,`InTextY`,`InTextZ`) VALUES (%f, %f, %f)"xyz); 
    
mysql_tquery(g_iHandlequery); 
    return 
1

Reply


Messages In This Thread
[CMD] - SERVER: Unknown command - by Maximun - 07.07.2016, 18:32
Re: [CMD] - SERVER: Unknown command - by Doudou - 07.07.2016, 18:41
Re: [CMD] - SERVER: Unknown command - by iKarim - 07.07.2016, 18:57
Re: [CMD] - SERVER: Unknown command - by Maximun - 07.07.2016, 19:16
Re: [CMD] - SERVER: Unknown command - by Maximun - 07.07.2016, 21:44
Re: [CMD] - SERVER: Unknown command - by Dayrion - 07.07.2016, 21:45
Re: [CMD] - SERVER: Unknown command - by Maximun - 07.07.2016, 21:50
Re: [CMD] - SERVER: Unknown command - by Dayrion - 07.07.2016, 22:23
Re: [CMD] - SERVER: Unknown command - by Maximun - 07.07.2016, 23:49
Re: [CMD] - SERVER: Unknown command - by Maximun - 08.07.2016, 11:31

Forum Jump:


Users browsing this thread: 1 Guest(s)