Jump to content

Question

Posted (edited)

Imi poate spune cineva ce am gresit mai jos? Deoarece nu-mi dau seama. As fi recunoscator.

Quote

format(szFaction, 256, "%s", (PlayerInfo[playerid][pFaction] != 0) ? (FactionInfo[PlayerInfo[targetid][pFaction]][fName]) : (PlayerInfo[targetid][pLanguage] == 1) ? ("Civil") : ("Civilian"));

 

Edited by Voxing

5 answers to this question

Recommended Posts

  • 0
Posted
4 minutes ago, BaFFyJunior said:

Incearca asa:


new PlayerState[20];
if(PlayerInfo[targetid][pLanguage] == 1)
    format(PlayerState, sizeof(PlayerState), "Civil");
else
    format(PlayerState, sizeof(PlayerState), "Civilian");
format(szFaction, 256, "%s", (PlayerInfo[playerid][pFaction]) ? (FactionInfo[PlayerInfo[targetid][pFaction]][fName]) : (PlayerState))

 

error 033: array must be indexed (variable "PlayerState")

La linia cu -> format(szFaction, 256, "%s", (PlayerInfo[playerid][pFaction]) ? (FactionInfo[PlayerInfo[targetid][pFaction]][fName]) : (PlayerState))

  • 0
Posted
16 minutes ago, BaFFyJunior said:

Incearca asa:


new liFactionCheck[60], StateString[25];

if(PlayerInfo[targetid][pLanguage] == 1)
    format(StateString, sizeof(StateString), "Civil");
else
    format(StateString, sizeof(StateString), "Civillian");

liFactionCheck = (PlayerInfo[playerid][pFaction]) ? ( FactionInfo[PlayerInfo[targetid][pFaction]][fName] ) : ( StateString );
format(szFaction, 256, "%s", liFactionCheck);

 

Esti praf! -1! Bafta!

  • -1
Posted

Incearca asa:

new PlayerState[20];
if(PlayerInfo[targetid][pLanguage] == 1)
    format(PlayerState, sizeof(PlayerState), "Civil");
else
    format(PlayerState, sizeof(PlayerState), "Civilian");
format(szFaction, 256, "%s", (PlayerInfo[playerid][pFaction]) ? (FactionInfo[PlayerInfo[targetid][pFaction]][fName]) : (PlayerState))

 

  • -1
Posted
Acum 1 oră, Voxing a spus:

error 033: array must be indexed (variable "PlayerState")

La linia cu -> format(szFaction, 256, "%s", (PlayerInfo[playerid][pFaction]) ? (FactionInfo[PlayerInfo[targetid][pFaction]][fName]) : (PlayerState))

Incearca asa:

new liFactionCheck[60], StateString[25];

if(PlayerInfo[targetid][pLanguage] == 1)
    format(StateString, sizeof(StateString), "Civil");
else
    format(StateString, sizeof(StateString), "Civillian");

liFactionCheck = (PlayerInfo[playerid][pFaction]) ? ( FactionInfo[PlayerInfo[targetid][pFaction]][fName] ) : ( StateString );
format(szFaction, 256, "%s", liFactionCheck);

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.