09.04.2017, 14:10
Whats wrong in this code so that I can not accept his message
this is command /service 1 (taxi)
this is command /service 1 (taxi)
PHP код:
CMD:service(playerid, params[])
{
if(TelahLogin[playerid]==0) return SCM(playerid,warna_merah,"kamu belum login");
if(isnull(params)) return SendClientMessage(playerid, warna_biru, "Gunakan: /service [1.taxi/2.medic]");
if(!strcmp(params,"1",true))
{
new str[90],pID,sendername[MAX_PLAYER_NAME+12];
GetPlayerName(pID,sendername,sizeof(sendername));
if(PlayerInfo[playerid][pJobTaxi] == 1) return SendClientMessage(playerid,warna_putih,"Kamu seorang driver taxi dan tidak semestinya menggunakan command ini");
if(taxidriver < 1) return SendClientMessage(playerid,warna_coklattua,"Sekarang tidak ada pengemudi taxi yang bertugas, tunggu beberapa saat");
SendClientMessage(playerid,warna_putih,"Kamu sudah memanggil taxi");
if(taxidriver >= 1){
format(str,sizeof(str),"Seorang Bernama %s memanggil taxi driver ketik '/accept taxi' untuk menerimanya",sendername);
SendClientMessage(PlayerInfo[pID][pJobTaxi],warna_biru,str);
}
}
else if(!strcmp(params,"2",true))
{
}
return 1;
}