Jump to content
  • 0

Problema generala


Voxing

Question

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
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
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))

Link to comment
Share on other sites

  • 0
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!

Link to comment
Share on other sites

  • -1

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))

 

Link to comment
Share on other sites

  • -1
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);

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.