Will this work
#1

Will this code work? If not may you correct me,

pawn Код:
new name[24];
            GetPlayerName(playerid,name,24);
            if(strcmp(name, "JoeDaDude", false) == 0)
      {
        SendClientMessage(playerid, COLOR_GREEN, "Welcome Administrator Joe");
        SendClientMessage(playerid, COLOR_GREEN, "There is no news updates");
Reply
#2

looks fine to me. I might test it later
Reply
#3

You need to end it with other bracket.

Like this:
pawn Код:
new name[24];
GetPlayerName(playerid,name,24);
if(strcmp(name, "JoeDaDude", false) == 0)
{
SendClientMessage(playerid, COLOR_GREEN, "Welcome Administrator Joe");
SendClientMessage(playerid, COLOR_GREEN, "There is no news updates");
}
Reply
#4

Quote:
Originally Posted by Don Correlli
You need to end it with other bracket.

Like this:
pawn Код:
new name[24];
GetPlayerName(playerid,name,24);
if(strcmp(name, "JoeDaDude", false) == 0)
{
SendClientMessage(playerid, COLOR_GREEN, "Welcome Administrator Joe");
SendClientMessage(playerid, COLOR_GREEN, "There are no news updates");
}
also grammar would help... "There is no new updates"?
Reply
#5

i think it is meant to be news.
Reply
#6

ok. I changed it to news then. why would he need to tell himself of his script updates anyway?
Reply
#7

Quote:
Originally Posted by -The_Badger-
ok. I changed it to news then. why would he need to tell himself of his script updates anyway?
I dont, Admins will write news on a php, And it will tell me via that, It a script i made it searches for new stuff put by admins, Like bans ect
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)