Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!strcmp(cmd, "/bug", true))
- {
- new string[256], nome[24], bug[256], new File:arquivo;
- tmp = strtok(cmdtext, idx), bug = tmp;
- while(strlen(tmp) > 0)
- {
- strcat(bug, " ");
- strcat(bug, tmp);
- tmp = strtok(cmdtext, idx);
- }
- if(!strlen(tmp))
- return SendClientMessage(playerid, 0xFFFFFFAA, "USE: /bug [descri��o]");
- GetPlayerName(playerid, nome, sizeof nome);
- format(string, sizeof string, "Bug encontrado por %s: %s\r\n", nome, bug);
- arquivo = fopen("bugs.txt", io_append); //append = ler/escrever, coloca o ponteiro no final do arquivo
- fwrite(arquivo, string);
- fclose(arquivo);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment