[INI_String] Error
#1

What does cause this ini string error:

PHP код:
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3710) : error 001expected token")"but found "["
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3710) : warning 215expression has no effect
C
:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3710) : error 001expected token";"but found "]"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3710) : error 029invalid expressionassumed zero
C
:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3710) : fatal error 107too many error messages on one line 
PHP код:
INI_String("Novac",PlayerInfo[playerid][pNovac],32); // When i remove '32' error is "undefined symbol INI_String" 
Reply
#2

Quote:
Originally Posted by NoDi522
Посмотреть сообщение
What does cause this ini string error:

PHP код:
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3710) : error 001expected token")"but found "["
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3710) : warning 215expression has no effect
C
:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3710) : error 001expected token";"but found "]"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3710) : error 029invalid expressionassumed zero
C
:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3710) : fatal error 107too many error messages on one line 
PHP код:
INI_String("Novac",PlayerInfo[playerid][pNovac],32); // When i remove '32' error is "undefined symbol INI_String" 
Post your enum.

You need to add the value to it, between [].
Reply
#3

Well, this is how INI_String is defined in y_ini:
pawn Код:
INI_String(name[], variable , length );
If you remove the length parameter, you'll get an error. So don't.
Reply
#4

PHP код:
enum pInfo
{
    
pPassword,
    
pIP,
    
pSkin,
    
pGodine,
    
pSpol,
    
pScore,
    
pNovac,
    
pMute,
    
pZemlja,
    
pSupporter,
    
pAdministrator,
    
pKod,
    
pVip,
    
pPromoter,
    
Firma,
    
Kuca,
    
Mobitel,
    
pGPS,
    
pRadio,
    
pSat,
    
pGunDozvola,
    
pDriveDozvola,
    
pVozilo,
    
pUbojstva,
    
pZlocini,
    
pLicense,
    
pMotorLicense,
    
pBrodLicense,
    
pKamionLicense,
    
pBankNovac,
    
pBankRacun,
    
pCreditCard,
    
pBanovan,
    
pSmrti,
}; 
You mean like this ?

PHP код:
enum pInfo[]
{
    
pPassword,
    
pIP,
    
pSkin,
    
pGodine,
    
pSpol,
    
pScore,
    
pNovac,
    
pMute,
    
pZemlja,
    
pSupporter,
    
pAdministrator,
    
pKod,
    
pVip,
    
pPromoter,
    
Firma,
    
Kuca,
    
Mobitel,
    
pGPS,
    
pRadio,
    
pSat,
    
pGunDozvola,
    
pDriveDozvola,
    
pVozilo,
    
pUbojstva,
    
pZlocini,
    
pLicense,
    
pMotorLicense,
    
pBrodLicense,
    
pKamionLicense,
    
pBankNovac,
    
pBankRacun,
    
pCreditCard,
    
pBanovan,
    
pSmrti,
}; 
Reply
#5

In the enum:
pawn Код:
...
pScore,
pNovac[32],
pMute,
...
Reply
#6

thank you.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)