04.04.2017, 15:32
Quote:
Thanks, seems working!
Do you maybe know, how can i get a Player name to the Textdraw now? Anyway, thanks for help, letting me understand, how all this works. |
->
Код:
stock GetPlayerIdFromName(playername[]) { for(new i = 0; i <= MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new playername2[MAX_PLAYER_NAME]; GetPlayerName(i, playername2, sizeof(playername2)); if(strcmp(playername2, playername, true, strlen(playername)) == 0) { format(playername, sizeof playername2, playername2); return i; } } } return INVALID_PLAYER_ID; }
PHP код:
format(Pdb_ZP_name, sizeof(Pdb_ZP_name), "%s", id); // maybe id, but seems not working.
PHP код:
format(Pdb_ZP_name, sizeof(Pdb_ZP_name), "%s", inputtext); // maybe id, but seems not working.