SA-MP Forums Archive
Will this work - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Will this work (/showthread.php?tid=79520)



Will this work - JoeDaDude - 28.05.2009

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");



Re: Will this work - BP13 - 28.05.2009

looks fine to me. I might test it later


Re: Will this work - Correlli - 29.05.2009

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");
}



Re: Will this work - Badger(new) - 29.05.2009

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"?


Re: Will this work - Daren_Jacobson - 29.05.2009

i think it is meant to be news.


Re: Will this work - Badger(new) - 29.05.2009

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


Re: Will this work - JoeDaDude - 29.05.2009

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