03.07.2011, 04:33
O meu problema no /senha й que nгo tem o settimer de espera, muita coisa bugada no meu GM por falta do settimer, todos os tutoriais que tem й dificil de aprender, hahaha.. Tente isso
new pname[20];
new msgadmins[128];
GetPlayerName(playerid, pname, sizeof(pname));
No meu GM ainda tem isto, tente usar pra ver se arruma se der erro, hahaha..
na maioria das vezes й o string que usa, eu vejo em quase todos os codigos o string tipo esse codigo, espero que tenha ajudado, haha..![Cheesy](images/smilies/biggrin.png)
format(string, sizeof(string), "O Administrador %s baniu o jogador %s - Motivo: %s [%d/%d/%d]", aname, pname,result,month,day,year);
new pname[20];
new msgadmins[128];
GetPlayerName(playerid, pname, sizeof(pname));
Quote:
if(strcmp(cmd, "/pajuda", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAge] == 0){ PlayerInfo[playerid][pAge] = 1; { SendClientMessage(playerid, COLOR_RED, "Vocк pediu Ajuda. Aguarde um Administrador te ajudar."); format(msgadmins, sizeof(msgadmins), "%s [%d] Estб pedindo ajuda!! Vб atй ele...", pname,playerid); } }else{ } } } |
na maioria das vezes й o string que usa, eu vejo em quase todos os codigos o string tipo esse codigo, espero que tenha ajudado, haha..
![Cheesy](images/smilies/biggrin.png)
format(string, sizeof(string), "O Administrador %s baniu o jogador %s - Motivo: %s [%d/%d/%d]", aname, pname,result,month,day,year);
Quote:
for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(IsPlayerAdmin(i)) { SendClientMessage(i, Yellow, msgadmins); } } } return 1; } return 0; } strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; } |