27.05.2009, 13:44
new string[128]; What does new string[128]; do?
if(!strcmp(cmdtext, "/report", true))
{
if(cmdtext[8] == 0)
{
SendClientMessage(playerid, GRAY, "Fill something in.");
}
new playername[26]; What does it do? (New Playername, and What does the '26' stand for?
GetPlayerName(playerid, playername, 26);
format(string, sizeof(string),"%s reported: %s", playername, cmdtext[8]);
for(new i=0;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[i][Admin] > 0) {
SendClientMessage(i, RED ,string); Is it only sent to RCON admins? I mean, No, I haven't done anything so no Admins system yet.
}
return 1;
}
if(!strcmp(cmdtext, "/report", true))
{
if(cmdtext[8] == 0)
{
SendClientMessage(playerid, GRAY, "Fill something in.");
}
new playername[26]; What does it do? (New Playername, and What does the '26' stand for?
GetPlayerName(playerid, playername, 26);
format(string, sizeof(string),"%s reported: %s", playername, cmdtext[8]);
for(new i=0;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[i][Admin] > 0) {
SendClientMessage(i, RED ,string); Is it only sent to RCON admins? I mean, No, I haven't done anything so no Admins system yet.
}
return 1;
}