if (strcmp(PlayerInfo[playerid][pPersonagem1] == "Vazio") format(str, sizeof(str), "Vazio");
else format(str, sizeof(str), "%s", PlayerInfo[playerid][pPersonagem1]);
PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pTextDraws][2], str);
if (strcmp(PlayerInfo[playerid][pPersonagem2] == "Vazio") format(str, sizeof(str), "Vazio");
else format(str, sizeof(str), "%s", PlayerInfo[playerid][pPersonagem2]);
PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pTextDraws][3], str);
if (strcmp(PlayerInfo[playerid][pPersonagem3] == "Vazio") format(str, sizeof(str), "Vazio");
else format(str, sizeof(str), "%s", PlayerInfo[playerid][pPersonagem3]);
PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pTextDraws][4], str);
PlayerInfo[playerid][pPersonagem1] = "Vazio";
PlayerInfo[playerid][pPersonagem2] = "Vazio";
PlayerInfo[playerid][pPersonagem3] = "Vazio";
format(str, sizeof(str), "%s", ( << pra que esse parente aqui? !PlayerInfo[playerid][pPersonagem1]) ? ("Vazio") : (PlayerInfo[playerid][pPersonagem1]));
Код:
format(str, sizeof(str), "%s", ( << pra que esse parente aqui? !PlayerInfo[playerid][pPersonagem1]) ? ("Vazio") : (PlayerInfo[playerid][pPersonagem1])); |
PlayerInfo[playerid][pPersonagem1] = "Vazio";
PlayerInfo[playerid][pPersonagem2] = "Vazio";
PlayerInfo[playerid][pPersonagem3] = "Vazio";
format(str, sizeof(str), "%s", (!PlayerInfo[playerid][pPersonagem1]) ? ("Vazio") : (PlayerInfo[playerid][pPersonagem1]));
format(str, sizeof(str), "%s", (!PlayerInfo[playerid][pPersonagem1] ? ("Vazio") : (PlayerInfo[playerid][pPersonagem1])));
format(str, sizeof(str), "%s", !PlayerInfo[playerid][pPersonagem1] ? ("Vazio") : (PlayerInfo[playerid][pPersonagem1]));
format(str, sizeof(str), "%s", !PlayerInfo[playerid][pPersonagem1] ? ("Vazio") : (PlayerInfo[playerid][pPersonagem1])) PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pTextDraws][2], str);
format(str, sizeof(str), "%s", !PlayerInfo[playerid][pPersonagem2] ? ("Vazio") : (PlayerInfo[playerid][pPersonagem2])) PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pTextDraws][3], str);
format(str, sizeof(str), "%s", !PlayerInfo[playerid][pPersonagem3] ? ("Vazio") : (PlayerInfo[playerid][pPersonagem3])) PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pTextDraws][4], str);
format(PlayerInfo[playerid][pPersonagem1], sizeof(PlayerInfo[playerid][pPersonagem1]), "Vazio");
format(PlayerInfo[playerid][pPersonagem2], sizeof(PlayerInfo[playerid][pPersonagem1]), "Vazio");
format(PlayerInfo[playerid][pPersonagem3], sizeof(PlayerInfo[playerid][pPersonagem1]), "Vazio");
enum pInfo {
pPersonagem1[124],
pPersonagem2[124],
pPersonagem3[124]
};
new PlayerInfo[MAX_PLAYERS][pInfo];
Verificaзгo Correta.
PHP код:
PHP код:
|
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode RP\gamemodes\gamemode.pwn(6698) : warning 213: tag mismatch C:\Users\User\Desktop\San Andreas Multiplayer\gamemode RP\gamemodes\gamemode.pwn(6698) : warning 213: tag mismatch
strmid(PlayerInfo[playerid][pPersonagem1], DOF2_GetString(arquivo, "Personagem1"), 0, strlen(DOF2_GetString(arquivo, "Personagem1")), 255);
if(strcmp(Account[playerid][pPersonagem1], "Vazio", true) == 0) format(str, sizeof(str), "Vazio");
else format(str, sizeof(str), "%s", PlayerInfo[playerid][pPersonagem1]);
PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pTextDraws][2], str);
strmid(PlayerInfo[playerid][pPersonagem2], DOF2_GetString(arquivo, "Personagem2"), 0, strlen(DOF2_GetString(arquivo, "Personagem2")), 255);
if(strcmp(Account[playerid][pPersonagem2], "Vazio", true) == 0) format(str, sizeof(str), "Vazio");
else format(str, sizeof(str), "%s", PlayerInfo[playerid][pPersonagem2]);
PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pTextDraws][3], str);
strmid(PlayerInfo[playerid][pPersonagem3], DOF2_GetString(arquivo, "Personagem3"), 0, strlen(DOF2_GetString(arquivo, "Personagem2")), 255);
if(strcmp(Account[playerid][pPersonagem3], "Vazio", true) == 0) format(str, sizeof(str), "Vazio");
else format(str, sizeof(str), "%s", PlayerInfo[playerid][pPersonagem3]);
PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pTextDraws][4], str);
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode RP\gamemodes\gamemode.pwn(6698) : warning 213: tag mismatch C:\Users\User\Desktop\San Andreas Multiplayer\gamemode RP\gamemodes\gamemode.pwn(6698) : warning 213: tag mismatch
format(str, sizeof(str), "%s", !PlayerInfo[playerid][pPersonagem1] ? ("Vazio") : (PlayerInfo[playerid][pPersonagem1])) PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pTextDraws][2], str);
format(str, sizeof(str), "%s", !PlayerInfo[playerid][pPersonagem2] ? ("Vazio") : (PlayerInfo[playerid][pPersonagem2])) PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pTextDraws][3], str);
format(str, sizeof(str), "%s", !PlayerInfo[playerid][pPersonagem3] ? ("Vazio") : (PlayerInfo[playerid][pPersonagem3])) PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pTextDraws][4], str);