SA:MP Dedicated Server ---------------------- v0.2X, ©2005-2008 SA:MP Team [15:57:17] [15:57:17] Server Plugins [15:57:17] -------------- [15:57:17] Loading plugin: dns.dll [15:57:17] *** DNS Plugin v2.2 by Incognito loaded *** [15:57:17] Loaded. [15:57:17] Loading plugin: ysf.dll [15:57:17] [15:57:17] =============================== [15:57:17] YSF 0.2.00 loaded [15:57:17] © 2008 Alex "******" Cole [15:57:17] Server version: 0.2X [15:57:17] Operating System: Windows [15:57:17] =============================== [15:57:17] Loaded. [15:57:17] Loading plugin: mysql.dll [15:57:17] ------------------------------------- MySQL plugin has been loaded Version: 1.0.3 Initialized on SA:MP Windows 0.2X ------------------------------------- [15:57:17] Loaded. [15:57:17] Loaded 3 plugins. [15:57:17] [15:57:17] Filter Scripts [15:57:17] --------------- [15:57:17] Loading filter script 'ostream.amx'... [15:57:17] Loaded 1 filter scripts. [15:57:18] Uptime: 1097905 Threads: 1 Questions: 367393 Slow queries: 0 Opens: 10167 Flush tables: 1 Open tables: 13 Queries per second avg: 0.334 [15:57:18] MySQL has been initialized and successfully loaded [15:57:18] Script[gamemodes/****.amx]: Run time error 7: "Stack underflow"
Originally Posted by paytas
|
int pop(STACK *ps) { if(empty(ps)){ printf("Error: stack underflow"); exit(EXIT_FAILURE); } else return(ps->items[(ps->top)--]); } void push(int x, STACK *ps) { if(ps->top == STACKSIZE-1){ printf("Error: stack overflow"); exit(EXIT_FAILURE); } else ps->items[++(ps->top)] = x; return; }