Originally Posted by bennyisme
could u post an example please
![]() |
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) }
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) } |
//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;
}
//Top of Script new Text:Bitch; new count; 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) { count++; new str[30]; TextDrawShowForPlayer(playerid, Bitch); format(Str,sizeof(Str),"Team1: %d",Bitch); TextDrawSetString(Bitch,Str); return 1; }