i have ysi hooks, and i get this error at onplayerpickupdynamicpickup
https://pastebin.com/x8S2KBYe
how i can solve
https://pastebin.com/x8S2KBYe
how i can solve
new TEST = 5;
forward decrease(&n);
public decrease(&n)
{
printf("%i", n);
}
public OnGameModeInit()
{
SetTimerEx("decrease", 1000, true, "i", TEST);
return 1;
}
[22:19:20] 33554432
[22:19:21] 33554432
[22:19:22] 33554432
[22:19:23] 33554432
[22:19:24] 33554432
[22:19:26] 33554432
[22:19:27] 33554432
[22:19:28] 33554432
[22:19:29] 33554432
[22:19:30] 33554432
[22:19:31] 33554432
[22:19:32] 33554432
[22:19:33] 33554432
#define WPCOLOR_GOLD 0xFFFFAF33
SetPlayerAttachedObject(playerid, 2, GetWeaponModel(wp2), 8, -0.079999, -0.039999, 0.109999, -90.100006, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000,WPCOLOR_GOLD,WPCOLOR_GOLD);
public OnGameModeExit()
{
for(new i = 0; i < 20; i++) SendClientMessage(i, COLOR_WHITE, ""); // Clear the chat
SendClientMessageToAll(COLOR_RED, "SERVER: {FFFFFF}The server is restarting. You're being kicked.");
foreach (new i : Player)
{
if(IsPlayerConnected(i) && LoggedIn[i])
{
SaveUserData(i);
SetTimerEx("KickPlayer",500,false,"i",i);
}
}
SaveProperties();
mysql_close(Database);
return 1;
}
Start time: 1525644495
End Time: 1525644544
SELECT * ,FROM_UNIXTIME(DPocetak, '%Y/%m/%d') as PocLog,FROM_UNIXTIME(DKraj, '%Y/%m/%d') as KrajLog, DATEDIFF('KrajLog', 'PocLog') as days FROM `Karijera`
PocLog = 2018/05/07 KrajLog = 2018/05/07 days = NULL //It's problem |
SELECT DATEDIFF('2018/05/07, '2018/05/07') AS days;
days = 0 |
public OnPlayerConnect(playerid)
{
ClanInvited[playerid] = 999;
ClanInvitedBy[playerid] = 999;
new string[128];
gIncorrectPW[playerid] = 0;
gLogged[playerid] = 0;
format(string, sizeof(string), "%s (%d) has connected to the server. [%d/%d]", GetPlayerNameEx(playerid), playerid, Iter_Count(Player), MAX_PLAYERS);
SendClientMessageToAll(COLOR_DONOR, string);
SetPlayerCameraPos(playerid, 1058.593872, 1020.997863, 57.898475);
SetPlayerCameraLookAt(playerid, 1055.358764, 1017.354858, 56.774765);
XPtxtdraw[playerid] = CreatePlayerTextDraw(playerid, 504.000000, 80.640007, "$0000000");
PlayerTextDrawLetterSize(playerid, XPtxtdraw[playerid], 0.645200, 1.988266);
PlayerTextDrawAlignment(playerid, XPtxtdraw[playerid], 1);
PlayerTextDrawColor(playerid, XPtxtdraw[playerid], -5963521);
PlayerTextDrawSetShadow(playerid, XPtxtdraw[playerid], 0);
PlayerTextDrawSetOutline(playerid, XPtxtdraw[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, XPtxtdraw[playerid], 255);
PlayerTextDrawFont(playerid, XPtxtdraw[playerid], 3);
PlayerTextDrawSetProportional(playerid, XPtxtdraw[playerid], 1);
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
format(string, sizeof(string), "Welcome back %s, please input your password below to login.", GetPlayerNameEx(playerid));
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"Login!",string,"Login","Quit");
}
else
{
format(string, sizeof(string), "Welcome %s to our server, please input your password below to register.", GetPlayerNameEx(playerid));
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,"Register!",string,"Register","Quit");
}
TextDrawShowForPlayer(playerid, Intro[0]);
TextDrawShowForPlayer(playerid, Intro[1]);
mk[playerid] = 0;
ck[playerid] = 0;
pk[playerid] = 0;
return 1;
}
GangZoneShowForAll(ZoneID[zoneid], FactionInfo[factionid][Color]);
forward TextProcu();
SetTimer("TextProcu", 1000, true);
public TextProcu()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new string[256];
if(GetPlayerWantedLevel(i) > 0)
{
format(string,256,"||-||PROCURADO||[%d]",GetPlayerWantedLevel(i));
SetPlayerChatBubble(i,string, COLOR_RED, 100.0, 1000);
}
}
}