What's wrong that you don't let me know?
void Hook_Game_Weather_Event(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
int addressOfArgs = r3 + 10 * 0x4;
char [i]senderName = (char[/i])([i](int[/i])(senderData + 0x78) + 0x10);
unsigned int* eventargs = (unsigned int*)r3;
if (eventargs)
{
char buf[100];
snprintf(buf, sizeof(buf), "~g~%s ~w~tried to change the weather", senderName);
PRINT(buf,7000);
}
// call the original event
[i](int[/i])0x12C2E2C = 0x4E800020;;//GAME_WEATHER_EVENT,
((void(*)(int, int, int, int, int, int,int))0x830D8178)(r3, senderData, recieverData, r6, r7, r8, r9);
[i](int[/i])0x12C2E2C = 0x7C0802A6;
}
void Hook_Game_Weather_Event(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
int addressOfArgs = r3 + 10 * 0x4;
char [i]senderName = (char[/i])([i](int[/i])(senderData + 0x78) + 0x10);
unsigned int* eventargs = (unsigned int*)r3;
if (eventargs)
{
char buf[100];
snprintf(buf, sizeof(buf), "~g~%s ~w~tried to change the weather", senderName);
PRINT(buf,7000);
}
// call the original event
[i](int[/i])0x12C2E2C = 0x4E800020;;//GAME_WEATHER_EVENT,
((void(*)(int, int, int, int, int, int,int))0x830D8178)(r3, senderData, recieverData, r6, r7, r8, r9);
[i](int[/i])0x12C2E2C = 0x7C0802A6;
}