lil problem
#1

hey guys! i've been making a getping command, but iget a warning saying number of arguments didn't match definition:

heres lines:

if(strcmp(cmdtext, "/ping", true) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Your Current Ping Is %d",GetPlayerPing(playerid));
return 1;
}

what's wrong?
thanks
Reply
#2

Quote:
Originally Posted by pmk1
hey guys! i've been making a getping command, but iget a warning saying number of arguments didn't match definition:

heres lines:

if(strcmp(cmdtext, "/ping", true) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Your Current Ping Is %d",GetPlayerPing(playerid));
return 1;
}

what's wrong?
thanks
Sorry for my language why in the fuck would you need this!!! JUst press "Tab" and it tell you!
Reply
#3

use this :
Код:
if(strcmp(cmdtext, "/ping", true) == 0)
  {
  new ping[128];
  format(ping,sizeof(ping),"Your Current Ping Is %d",GetPlayerPing(playerid));
  SendClientMessage(playerid,COLOR_YELLOW,ping);
  return 1;
  }
Reply
#4

Quote:
Originally Posted by Steven82
Quote:
Originally Posted by pmk1
hey guys! i've been making a getping command, but iget a warning saying number of arguments didn't match definition:

heres lines:

if(strcmp(cmdtext, "/ping", true) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Your Current Ping Is %d",GetPlayerPing(playerid));
return 1;
}

what's wrong?
thanks
Sorry for my language why in the fuck would you need this!!! JUst press "Tab" and it tell you!
......
_________________________________________________
You need to format your text. To save your time, i've made the code for you.

pawn Код:
if(!strcmp(cmdtext, "/ping", true)) {
   new array[26];
   format(array, sizeof(array), "Your current ping is %d", GetPlayerPing(playerid));
   SendClientMessage(playerid, COLOR_YELLOW, array);
   return 1;
}
Reply
#5

steven , i do this becuz on the 'TAB' section It'S NOT ACCURATE XD if someone with high ping connects with example 210 of ping, even when it goes up to 200000000000 he'll still see the 210. That's why!!!!

n thanks for the correction, cya!
Reply
#6

Oh............i am sorry for being a dmubass, and a smartass, and thinking i know everything Sorry
Reply
#7

xd np
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)