Quote:
Originally Posted by Oylsister
PHP Code:
decl String:name[64], String:enable[32], String:defaults[32]; new Items[Classes];
do { KvGetString(kv, "default", defaults, 32); KvGetString(kv, "enabled", enable, 32); if(StrEqual(enable, "yes") && StrEqual(defaults, "yes") && KvGetNum(kv, "team") == 0 && KvGetNum(kv, "flags") == 0) // check if is a enabled zombie class and no admin class { KvGetString(kv, "name", name, sizeof(name)); Items[Index] = ZR_GetClassByName(name); Items[health] = KvGetNum(kv, "health", 5000); KvGetString(kv, "model_path", Items[model], 128); PushArrayArray(array_classes, Items[0]); // save all info in the array } } while (KvGotoNextKey(kv));
added some part of the code, try it for zr_classfix.sp
|
Thanks for trying, seems like I just get errors why I try to compile with this.
Heres some of the errors:
error 021: symbol already defined: "Items"
error 021: symbol already defined: "KvGetString"
error 054: unmatched closing brace ("}")
I guess I can't have VIP zombie classes for a while now untill this gets fixed
__________________