06.02.2013, 01:21
pawn Code:
new PlayerText:saludo_gTD[MAX_PLAYERS];
public OnPlayerConnect(playerid) {
new
string[24],
nombre[MAX_PLAYER_NAME]
;
GetPlayerName(playerid, nombre, sizeof(nombre));
saludo_gTD[playerid] = CreatePlayerTextDraw(playerid, 0.0, 0.0, "Cesar_Google");
format(string, sizeof(string), "%s", nombre);
PlayerTextDrawSetString( playerid, saludo_gTD[playerid], string);
PlayerTextDrawShow(playerid, saludo_gTD[playerid]);
return 1;
}
El mio:
pawn Code:
main() {
new string[10];
string = "\0hola";
printf(string);
}