Question? (+1 rep for you :))
#1

I want to count the players so I will make:

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!!
Reply


Messages In This Thread
Question? (+1 rep for you :)) - by Andrew97 - 16.04.2012, 10:10
Re: Question? (+1 rep for you :)) - by ProdrifterX - 16.04.2012, 10:12
Re: Question? (+1 rep for you :)) - by ProdrifterX - 16.04.2012, 10:15
Re: Question? (+1 rep for you :)) - by RollTi - 16.04.2012, 10:16
Re: Question? (+1 rep for you :)) - by doreto - 16.04.2012, 10:17
Re: Question? (+1 rep for you :)) - by ProdrifterX - 16.04.2012, 10:20
Re: Question? (+1 rep for you :)) - by Andrew97 - 16.04.2012, 10:24

Forum Jump:


Users browsing this thread: 1 Guest(s)