[Pawn] cache_insert_id always return 0 - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) --- Thread: [Pawn] cache_insert_id always return 0 (/showthread.php?tid=2282) |
cache_insert_id always return 0 - Axitz - 2022-03-30 Hi, sorry how bad this was. I've created a team and the table is also is AI mode. There are multiples team in the query but whenever server restart or player quit, then create team, it always started at 0 again. PHP Code: forward TeamCreated(b); PHP Code: if(strcmp(usage, "create", false) == 0) RE: cache_insert_id always return 0 - FARADAY - 2022-03-31 where are you upload GroupCreated? error mysql: `TeamName``StartRank` RE: cache_insert_id always return 0 - Axitz - 2022-04-01 Ops sorry, my bad it was TeamCreated not GroupCreated. Problem still occurs. RE: cache_insert_id always return 0 - FARADAY - 2022-04-01 Where are the groups loaded when the mod starts? Is there teamidd? RE: cache_insert_id always return 0 - Radical - 2022-04-01 (2022-03-30, 07:41 AM)Axitz Wrote: but whenever server restart or player quit, then create team, it always started at 0 again. This is due to a "teamidd" variable reset on exit. You should add? teamidd? where you load the teams. ------------------------------------------------------- Recommended: If you want to get a free team ID, use this function: Code: GetFreeTeamID() { Code: new tmID = GetFreeTeamID(); RE: cache_insert_id always return 0 - Axitz - 2022-04-07 Sorry late, it doesn't seem to fix the issue as well. |