Error while compiling[rep+] - 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)
+--- Thread: Error while compiling[rep+] (
/showthread.php?tid=612404)
Error while compiling[rep+] -
Dejan12345 - 17.07.2016
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
Re: Error while compiling[rep+] -
FuNkYTheGreat - 17.07.2016
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;
}