25.08.2014, 03:30
Hi I need Help with this Code
Line 2875 - 2947 (ProxDetector)
LINE 5604 - 5643 ( splits )
LINE 5879 - 5951 (INIS)
It Gives me an Error
Line 2875 - 2947 (ProxDetector)
pawn Код:
stock PillsHeart(playerid)
{
new string[128];
new randgift = Random(1, 11);
if(randgift >= 1)
{
new pillz = Random(1, 12);
if(pillz == 1)
{
SetPlayerHealth(playerid, 0);
format(string, sizeof(string), "* %s is unconscious due to sudden heart-attack.", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK);
}
else if(pillz == 2)
{
SetPlayerHealth(playerid, 0);
format(string, sizeof(string), "* %s is unconscious due to sudden heart-attack.", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK);
}
else if(pillz == 3)
{
SetPlayerArmourEx(playerid, 100);
SetPlayerHealth(playerid, 100);
format(string, sizeof(string), "* %s has increase adrenaline level", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK);
}
else if(pillz == 4)
{
SetPlayerHealth(playerid, 0);
format(string, sizeof(string), "* %s is unconscious due to sudden heart-attack.", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK);
}
else if(pillz == 5)
{
SetPlayerArmourEx(playerid, 100);
SetPlayerHealth(playerid, 100);
format(string, sizeof(string), "* %s has increase adrenaline level", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK);
}
else if(pillz == 6)
{
SetPlayerArmourEx(playerid, 100);
SetPlayerHealth(playerid, 100);
format(string, sizeof(string), "* %s has increase adrenaline level", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK);
}
else if(pillz == 7)
{
SetPlayerHealth(playerid, 0);
format(string, sizeof(string), "* %s is unconscious due to sudden heart-attack.", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK);
}
else if(pillz == 8)
{
SetPlayerHealth(playerid, 0);
format(string, sizeof(string), "* %s is unconscious due to sudden heart-attack.", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK);
}
else if(pillz == 9)
{
SetPlayerArmourEx(playerid, 100);
SetPlayerHealth(playerid, 100);
format(string, sizeof(string), "* %s has increase adrenaline level", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK);
}
else if(pillz == 10)
{
SetPlayerArmourEx(playerid, 100);
SetPlayerHealth(playerid, 100);
format(string, sizeof(string), "* %s has increase adrenaline level", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK);
}
else if(pillz == 11)
{
SetPlayerHealth(playerid, 0);
format(string, sizeof(string), "* %s is unconscious due to sudden heart-attack.", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK);
}
else if(pillz == 12)
{
SetPlayerArmourEx(playerid, 100);
SetPlayerHealth(playerid, 100);
format(string, sizeof(string), "* %s has increase adrenaline level", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK);
}
}
}
pawn Код:
stock LoadPoints()
{
new arrCoords[9][64];
new strFromFile2[256];
new File: file = fopen("points.cfg", io_read);
if(file)
{
new idx;
while (idx < sizeof(Points))
{
fread(file, strFromFile2);
splits(strFromFile2, arrCoords, '|');
Points[idx][Pointx] = floatstr(arrCoords[0]);
Points[idx][Pointy] = floatstr(arrCoords[1]);
Points[idx][Pointz] = floatstr(arrCoords[2]);
Points[idx][Type] = strval(arrCoords[3]);
Points[idx][Vulnerable] = strval(arrCoords[4]);
strmid(Points[idx][Owner], arrCoords[5], 0, strlen(arrCoords[5]), 255);
strmid(Points[idx][CapperName], arrCoords[6], 0, strlen(arrCoords[6]), 255);
strmid(Points[idx][Name], arrCoords[7], 0, strlen(arrCoords[7]), 255);
Points[idx][MatPoint] = strval(arrCoords[8]);
//printf("%s Type:%d Owner:%s",Points[idx][Name],Points[idx][Type],Points[idx][Owner]);
Points[idx][CaptureTimerEx2] = -1;
Points[idx][ClaimerId] = INVALID_PLAYER_ID;
Points[idx][PointPickupID] = CreatePickup(1239, 23, Points[idx][Pointx], Points[idx][Pointy], Points[idx][Pointz], -1);
idx++;
}
fclose(file);
}
return 1;
}
pawn Код:
stock LoadFamiliesHQ()
{
new string2[64];
format(string2, sizeof(string2), "familieshq.ini");
new File: GangFile = fopen(string2, io_read);
//printf("[DEBUG] LoadFamiliesHQ: string2 (%s)", string2);
if(GangFile)
{
//print("[DEBUG] LoadFamiliesHQ: GangFile exists, the handle parsed.");
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
//print("[DEBUG] Starting while (fread(GangFile , Data , sizeof(Data)))");
while (fread(GangFile , Data , sizeof(Data)))
{
new string[128];
for(new f = 0; f < MAX_FAMILY; f++)
{
key = ini_GetKey(Data);
format(string, 128, "Family%dEntranceX",f);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyEntrance][0] = floatstr(val); }
format(string, 128, "Family%dEntranceY",f);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyEntrance][1] = floatstr(val); }
format(string, 128, "Family%dEntranceZ",f);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyEntrance][2] = floatstr(val); }
format(string, 128, "Family%dEntranceA",f);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyEntrance][3] = floatstr(val); }
format(string, 128, "Family%dExitX",f);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyExit][0] = floatstr(val); }
format(string, 128, "Family%dExitY",f);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyExit][1] = floatstr(val); }
format(string, 128, "Family%dExitZ",f);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyExit][2] = floatstr(val); }
format(string, 128, "Family%dExitA",f);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyExit][3] = floatstr(val); }
format(string, 128, "Family%dInterior",f);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyInterior] = strval(val); }
format(string, 128, "Family%dCustomMap",f);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyCustomMap] = strval(val); }
format(string, 128, "Family%dVirtualWorld",f);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyVirtualWorld] = strval(val); }
for(new fv = 0; fv < MAX_GANG_VEHICLES; fv++)
{
format(string, 128, "Family%dVeh%dModelId",f, fv);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvModelId] = strval(val); }
format(string, 128, "Family%dVeh%dSpawnx",f, fv);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvSpawnx] = floatstr(val); }
format(string, 128, "Family%dVeh%dSpawny",f, fv);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvSpawny] = floatstr(val); }
format(string, 128, "Family%dVeh%dSpawnz",f, fv);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvSpawnz] = floatstr(val); }
format(string, 128, "Family%dVeh%dSpawna",f, fv);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvSpawna] = floatstr(val); }
format(string, 128, "Family%dVeh%dLock",f, fv);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvLock] = strval(val); }
format(string, 128, "Family%dVeh%dLocked",f, fv);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvLocked] = strval(val); }
format(string, 128, "Family%dVeh%dPaintJob",f, fv);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvPaintJob] = strval(val); }
format(string, 128, "Family%dVeh%dColor1",f, fv);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvColor1] = strval(val); }
format(string, 128, "Family%dVeh%dColor2",f, fv);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvColor2] = strval(val); }
format(string, 128, "Family%dVeh%dFuel",f, fv);
if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvFuel] = floatstr(val); }
}
//printf("Family %d loaded [DEBUG] FamilyEntranceX: %.1f FamilyEntranceY: %.1f FamilyEntranceZ: %.1f", f, FamilyInfo[f][FamilyEntrance][0], FamilyInfo[f][FamilyEntrance][1], FamilyInfo[f][FamilyEntrance][2]);
}
}
fclose(GangFile);
}
return 1;
}
pawn Код:
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(2875) : error 017: undefined symbol "ProxDetector"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(2881) : error 017: undefined symbol "ProxDetector"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(2888) : error 017: undefined symbol "ProxDetector"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(2894) : error 017: undefined symbol "ProxDetector"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(2901) : error 017: undefined symbol "ProxDetector"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(2908) : error 017: undefined symbol "ProxDetector"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(2914) : error 017: undefined symbol "ProxDetector"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(2920) : error 017: undefined symbol "ProxDetector"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(2927) : error 017: undefined symbol "ProxDetector"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(2934) : error 017: undefined symbol "ProxDetector"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(2940) : error 017: undefined symbol "ProxDetector"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(2947) : error 017: undefined symbol "ProxDetector"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(5615) : error 017: undefined symbol "splits"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(5897) : error 017: undefined symbol "ini_GetKey"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(5897) : error 033: array must be indexed (variable "key")
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(5899) : error 017: undefined symbol "Ini_Value"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(5899) : error 033: array must be indexed (variable "val")
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(5901) : error 017: undefined symbol "Ini_Value"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(5901) : error 033: array must be indexed (variable "val")
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(5903) : error 017: undefined symbol "Ini_Value"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(5903) : error 033: array must be indexed (variable "val")
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(5905) : error 017: undefined symbol "Ini_Value"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(5905) : error 033: array must be indexed (variable "val")
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(5907) : error 017: undefined symbol "Ini_Value"
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(5907) : error 033: array must be indexed (variable "val")
C:\Program Files\Windows Version [0.3z]\gamemodes\PVRP.pwn(5909) : error 017: undefined symbol "Ini_Value"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.