14.05.2010, 02:59
Quote:
|
Originally Posted by bennyisme
Код:
error 001: expected token: "(", but found ">"
error 001: expected token: ";", but found "-integer value-"
error 001: expected token: ";", but found ">"
error 010: invalid function or declaration
warning 219: local variable "i" shadows a variable at a preceding level
Код:
forward i > 0 MAX_PLAYER_NAME
public OnGameModeInit()
{
Bitch = TextDrawCreate(x,y, "Team1: %S", i);
}
public OnPlayerSpawn()
{
TextDrawShowForPlayer(playerid, Bitch)
}
|
pawn Код:
//Top of Script
new Text:Bitch;
public OnGameModeInit()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new str[75];
format(str, sizeof(str), "Team1: %d", i);
Bitch = TextDrawCreate(0.0, 0.0, str);
break;
}
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, Bitch);
return 1;
}

