DCMD, Check if something is entered behind the params
#1

Im making a location command, but i want to check if something is entered using the params. If not, then display a message..Can somebody help me?
This is my code for now:
pawn Код:
dcmd_loc(playerid, params[])
{
    GetPlayer2DZone(playerid, Zone, MAX_ZONE_NAME);
    SendClientMessage(playerid, COLOR_GREY, Zone);
   
    return 1;
}
Thnx
Reply
#2

pawn Код:
if (params[0]=='\0') return SendClientMessage(playerid, COLOR_WHITE, "Type something you moron!");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)