Error while compiling[rep+]
#1

public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0xED1148FF, "Dobro Dosli Na Black Shadow Roleplay!");
playersconnected++;
//playersconnect += 1;
new string[60];
format(string, sizeof(string),"Ovde je trenutno %d i %d igraca na serveru.",playersconnected);
SendClientMessageToAll(0xED1148FF, string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
playersconnected--;
//playersconnect -= 1;
new string[60];
format(string, sizeof(string),"Ovde je trenutno %d i %d igraca na serveru.",playersconnected);
SendClientMessageToAll(0xED1148FF, string);
return 1;
}
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\pawno\BSRP V.0.1.pwn(4) : error 010: invalid function or declaration
help
Reply
#2

try this i think it will work.
Код:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0xED1148FF, "Dobro Dosli Na Black Shadow Roleplay!");
playersconnected ++;
//playersconnect += 1;
new string[60];
format(string, sizeof(string),"Ovde je trenutno %d i %d igraca na serveru.",playersconnected);
SendClientMessageToAll(0xED1148FF, string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
playersconnected --;
//playersconnect -= 1;
new string[60];
format(string, sizeof(string),"Ovde je trenutno %d i %d igraca na serveru.",playersconnected);
SendClientMessageToAll(0xED1148FF, string);
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)