error 012
#1

PHP код:
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma5.pwn(421) : error 012invalid function callnot a valid address
C
:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma5.pwn(421) : warning 215expression has no effect
C
:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma5.pwn(421) : error 001expected token";"but found ")"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma5.pwn(421) : error 029invalid expressionassumed zero
C
:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma5.pwn(421) : fatal error 107too many error messages on one line 
that is from Fahadking's zombie-gamemode,

here is the line 421:
PHP код:
function StartMap()
{
    
ClearChat();
    foreach(
Player,i)
    {
        
SetCameraBehindPlayer(i);
        
ClearAnimations(i);
        
HumanSetup(i);
        
SpawnPlayer(i);
        
CurePlayer(i);
        
SetPlayerDrunkLevel(i,0);
        
DisablePlayerCheckpoint(i);
        
pInfo[i][Boxes] = 2;
        
pInfo[i][BoxesAdvanced] = 10;
        
pInfo[i][SkinChanges] = 2;
        
pInfo[i][ArmourChanges] = 2;
        
pInfo[i][pVipBoxes] = 35;
        
pInfo[i][pLadders] = 2;
        
pInfo[i][pFakeKills] = 0;
        
pInfo[i][pAmmoBoxes] = 10;
        
pInfo[i][C4] = 4;
        
pInfo[i][pTrapMasterTrap] = 1;
        
pInfo[i][pScientistCure] = 1;
        
pInfo[i][pDoctorShield] = 1;
        
pInfo[i][pMapsPlayed]++;
        
TextDrawHideForPlayer(iServerIntroOne[i]);
        
TextDrawHideForPlayer(iServerIntroTwo[i]);
        
DestroyPickup(meatDrops[i]);
        
DestroyPickup(ammoDrops[i]);
        
DestroyObject(DocShield);
        
DestroyObject(Trap);
        
TogglePlayerControllable(i,1);
    } 
the CurePlayer(i); is the line 421.
Reply
#2

try to remove it.
Reply
#3

Quote:
Originally Posted by SturtIndia
Посмотреть сообщение
try to remove it.
the script will not work properly if i remove it
Reply
#4

Send the function of CurePlayer(playerid) ??
Reply
#5

Quote:
Originally Posted by GeekSiMo
Посмотреть сообщение
Send the function of CurePlayer(playerid) ??
its foreach dude..
Reply
#6

im confused, when i remove the variables:
PHP код:
new CurePlayer;
new 
ChangeCameraView;
new 
CreateEvacMaps;
new 
IsValidWeapon;
new 
DoctorShield;
new 
TrapMasterTrap;
new 
CheckToStartMap;
new 
sendClassMessage;
new 
SpawnVars;
new 
SendPlayerMaxAmmo;
new 
InfectPlayerStandard;
new 
hideTextdrawsAfterConnect;
new 
CheckToLevelOrRankUp;
new 
InfectPlayerMutated;
new 
GetAdminName
i get this:
Quote:

C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(413) : error 017: undefined symbol "CurePlayer"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(466) : error 017: undefined symbol "ChangeCameraView"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(494) : error 017: undefined symbol "CreateEvacMaps"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(536) : error 017: undefined symbol "CurePlayer"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(550) : error 017: undefined symbol "CurePlayer"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(564) : error 017: undefined symbol "CurePlayer"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(57 : error 017: undefined symbol "CurePlayer"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(622) : error 017: undefined symbol "IsValidWeapon"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(742) : error 017: undefined symbol "DoctorShield"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(743) : error 017: undefined symbol "TrapMasterTrap"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(981) : error 017: undefined symbol "CheckToStartMap"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(1009) : error 017: undefined symbol "sendClassMessage"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(1011) : error 017: undefined symbol "SpawnVars"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(1355) : error 017: undefined symbol "SendPlayerMaxAmmo"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(1594) : error 017: undefined symbol "CurePlayer"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(1740) : error 017: undefined symbol "InfectPlayerStandard"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(1794) : error 017: undefined symbol "hideTextdrawsAfterConnect"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(1795) : error 017: undefined symbol "CheckToLevelOrRankUp"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(260 : error 017: undefined symbol "InfectPlayerStandard"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(274 : error 017: undefined symbol "CurePlayer"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(2899) : error 017: undefined symbol "InfectPlayerStandard"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(2942) : error 017: undefined symbol "InfectPlayerMutated"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(2985) : error 012: invalid function call, not a valid address
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(2985) : warning 215: expression has no effect
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(2985) : error 001: expected token: ";", but found ")"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(2985) : error 029: invalid expression, assumed zero
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(2985) : fatal error 107: too many error messages on one line

but when i add those variables, i get this:
Quote:

C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(42 : error 012: invalid function call, not a valid address
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(42 : warning 215: expression has no effect
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(42 : error 001: expected token: ";", but found ")"
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(42 : error 029: invalid expression, assumed zero
C:\Users\JUSTIN\Documents\GTAhh\iTDs\gamemodes\zma 5.pwn(42 : fatal error 107: too many error messages on one line

Reply
#7

Quote:
Originally Posted by XGreen
Посмотреть сообщение
that is from Fahadking's zombie-gamemode,
Then try to contact FahadKing07 and he will help you since it is HIS gamemode.
Reply
#8

Hello,

What did you changed last time ? Or did you tried to add new class in it ?
Reply
#9

CurePlayer() and the others are user created functions.
Adding new will not solve this problem.

Try creating or searching for these functions and then add them to the script.


For example:
pawn Код:
stock CurePlayer(playerid)
{
    return SetPlayerHealth(playerid, 100);
}
Reply
#10

Quote:
Originally Posted by Stinged
Посмотреть сообщение
CurePlayer() and the others are user created functions.
Adding new will not solve this problem.

Try creating or searching for these functions and then add them to the script.


For example:
pawn Код:
stock CurePlayer(playerid)
{
    return SetPlayerHealth(playerid, 100);
}
i already added it into stock,here:
PHP код:
stock CurePlayer(playerid)
{
    if(
pInfo[playerid][IsPlayerInfected] == 1)
    {
        
KillTimer(pInfo[playerid][IsPlayerInfectedTimer]);
        
pInfo[playerid][IsPlayerInfected] = 0;
        
SetPlayerColor(playerid,COLOR_HUMAN);
        
ApplyAnimation(playerid,"MEDIC","CPR",4.1,0,1,1,1,1);
        
SetPlayerDrunkLevel(playerid,0);
        
TextDrawHideForPlayer(playerid,Infected[playerid]);
    }
    return 
1;

and the rest is already added
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)