16.04.2012, 10:10
I want to count the players so I will make:
new players
okay I want make a New String in onplayerconnect how Can I do that?
When I do a new string onplayerconnect
it get me this Error:
D:\Script\gamemodes\FR.pwn(84) : error 021: symbol already defined: "string"
Help me please!!
new players
Код:
public OnPlayerConnect(playerid) { SendClientMessage(playerid,RED,"Welcome to Player Rights Server"); SendClientMessage(playerid,YELLOW,"Admins are here to Help you if they Did anything Wrong Just tell the Owner"); SendClientMessageToAll(RED,"A player has Joined the Game"); new string[128]; format(string, sizeof(string), "there are Currently %d players online", players); SendClientMessage(playerid, -1, string); return 1; } public OnPlayerDisconnect(playerid, reason) { SendClientMessage(playerid,RED,"Hope to you to Come Back"); new string[128]; format(string, sizeof(string), "there are Currently %d online", players); SendClientMessage(playerid, -1, string); return 1; }
okay I want make a New String in onplayerconnect how Can I do that?
When I do a new string onplayerconnect
it get me this Error:
D:\Script\gamemodes\FR.pwn(84) : error 021: symbol already defined: "string"
Help me please!!