20.02.2013, 11:37
Fixed myself, lol had a bracket missing.
OnGameModeExit() {
for (new i = 0; i != MAX_PLAYERS; ++i)
{
savePlayer(i);
}
mysql_close(iConnectionHandle);
return 1;
}
public EngineTimer(playerid)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid),1,1, alarm,doors, bonnet, boot, objective);
return 1;
}
Hey I'm working on Calgon base mysql script and I'm trying to make autosave in OnGameModeExit
like when the server crashes or shutdown by closing the CMD window or by using /rcon gmx its will automatic save the player data. I tried to do this: PHP код:
anyone can help me please? Thanks FuznesS. |
Sorry double post but it has passed some days:
My question: What does %02d, the 02 mean in that? Example: https://sampwiki.blast.hk/wiki/Getdate https://sampwiki.blast.hk/wiki/Gettime |
Sorry double post but it has passed some days:
My question: What does %02d, the 02 mean in that? Example: https://sampwiki.blast.hk/wiki/Getdate https://sampwiki.blast.hk/wiki/Gettime |
Alright thanks Y_Less.
Another noob question: How can I, with zcmd, make a command with string options like with /command [options], where "options" is a string that the player puts in. I tried something stupid like if(option == "lol") but obviously something like that would only work for integers (numbers). Is there any good way to do it with zcmd? Just a simple example would do the trick of teaching me how to do it! :P If you don't understand what I'm trying to do, imagine this then: I am doing an /info command. And if you type in "/info mysql" it will show one SendClientMessage. If you type in "/info y_ini", it will show another informational SendClientMessage. That is basically what I'm trying to learn here. :P |