15.04.2013, 08:51
This is for people who don't have a site for there server like me -_-
So lets say you don't have a site but you still want feedback from your players or you want them to report bugs and suggest things... this is what you can use...
Quote:
CMD:reportbug(playerid, params[]) { if (isnull(params)) return SendClientMessage(playerid,-1,# /reportbug <bug> If you abuse this you will serve a punishment.); new _msg[ 128 ], _msg2[ 128 ], player_name[ MAX_PLAYER_NAME ]; GetPlayerName(playerid, player_name, MAX_PLAYER_NAME); SendClientMessage(playerid,red,"The bug you have reported has gone through to the main office!"); format( _msg, sizeof ( _msg ), "Name: %s\r\n", player_name); format( _msg2, sizeof( _msg2), "Bug: %s\r\n",params); new File: fileToWrite = fopen("Bug Reports.txt", io_append); fwrite(fileToWrite,"[New Bug]\r\n"); fwrite(fileToWrite, _msg); fwrite(fileToWrite, _msg2); fclose(fileToWrite); return 1; } |
[New Bug]
Name: aadasdas
Bug: lol
You will get a lot of spam if you have people abusing this so if anyone can update this one a bit more then it would be a better function