29.08.2014, 17:27
Hey guys!
I keep getting Undefined Symbol Error for some things, and i do not know how to fix it. Please help me?
Here is the error:
Lines 192 - 234
I keep getting Undefined Symbol Error for some things, and i do not know how to fix it. Please help me?
Here is the error:
Код:
C:\Users\USER\Desktop\Server\gamemodes\SAU-RP.pwn(204) : error 017: undefined symbol "splits" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
BootDoors() { new dPosition[14][64]; new filestring[256]; new str[128]; new File: file = fopen("doors.cfg", io_read); if (file) { new idx; while (idx < sizeof(dInfo)) { fread(file, filestring); splits(filestring, dPosition, '|'); strmid(dInfo[idx][dText], dPosition[0], 0, strlen(dPosition[0]), 128); dInfo[idx][Pickup] = strval(dPosition[1]); dInfo[idx][Ex] = floatstr(dPosition[2]); dInfo[idx][Ey] = floatstr(dPosition[3]); dInfo[idx][Ez] = floatstr(dPosition[4]); dInfo[idx][Ix] = floatstr(dPosition[5]); dInfo[idx][Iy] = floatstr(dPosition[6]); dInfo[idx][Iz] = floatstr(dPosition[7]); dInfo[idx][Interior] = strval(dPosition[8]); dInfo[idx][dActive] = strval(dPosition[9]); dInfo[idx][Eworld] = strval(dPosition[10]); dInfo[idx][Iworld] = strval(dPosition[11]); dInfo[idx][Eint] = strval(dPosition[12]); dInfo[idx][Iint] = strval(dPosition[13]); if(dInfo[idx][dActive] == 0) { format(str,sizeof(str),"Door ID %d\nPress C to enter.",idx); dInfo[idx][Text] = CreateDynamic3DTextLabel(str, COLOR_YELLOW, dInfo[idx][Ex], dInfo[idx][Ey], dInfo[idx][Ez],10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, dInfo[idx][Eworld], dInfo[idx][Eint], -1); dInfo[idx][Pickup] = CreateDynamicPickup(1239, 23, dInfo[idx][Ex], dInfo[idx][Ey], dInfo[idx][Ez], 0, 0, -1); } else { format(str,sizeof(str),"Door ID %d\nPress C to enter.\n%s",idx,dInfo[idx][dText]); dInfo[idx][Text] = CreateDynamic3DTextLabel(str, COLOR_YELLOW, dInfo[idx][Ex], dInfo[idx][Ey], dInfo[idx][Ez],15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, dInfo[idx][Eworld], dInfo[idx][Eint], -1); CreateDynamicPickup(dInfo[idx][Pickup], 23, dInfo[idx][Ex], dInfo[idx][Ey], dInfo[idx][Ez], 0, 0, -1); } idx++; printf("%d doors loaded!",idx); } fclose(file); } return 1; }