new Factionname; if(PlayerInfo[playerid][Faction] == 1) { Factionname = "LSPD"; } else if(PlayerInfo[playerid][Faction] == 2) { Factionname = "FBI"; } else if(PlayerInfo[playerid][Faction] == 3) { Factionname = "S.W.A.T"; } else if(PlayerInfo[playerid][Faction] == 4) { Factionname = "G5Security"; } else if(PlayerInfo[playerid][Faction] == 5) { Factionname = "EMT"; } else if(PlayerInfo[playerid][Faction] == 6) { Factionname = "SanNews"; }
C:\Users\mattt\Desktop\New\gamemodes\arrp.pwn(578) : error 006: must be assigned to an array C:\Users\mattt\Desktop\New\gamemodes\arrp.pwn(582) : error 006: must be assigned to an array C:\Users\mattt\Desktop\New\gamemodes\arrp.pwn(586) : error 006: must be assigned to an array C:\Users\mattt\Desktop\New\gamemodes\arrp.pwn(590) : error 006: must be assigned to an array C:\Users\mattt\Desktop\New\gamemodes\arrp.pwn(594) : error 006: must be assigned to an array C:\Users\mattt\Desktop\New\gamemodes\arrp.pwn(598) : error 006: must be assigned to an array
new Factionname;
if(PlayerInfo[playerid][Faction] == 1)
{
Factionname == "LSPD";
}
else if(PlayerInfo[playerid][Faction] == 2)
{
Factionname == "FBI";
}
else if(PlayerInfo[playerid][Faction] == 3)
{
Factionname == "S.W.A.T";
}
else if(PlayerInfo[playerid][Faction] == 4)
{
Factionname == "G5Security";
}
else if(PlayerInfo[playerid][Faction] == 5)
{
Factionname == "EMT";
}
else if(PlayerInfo[playerid][Faction] == 6)
{
Factionname == "SanNews";
}
new Factionname[32];
try this one
PHP код:
|
format(Factionname, sizeof(Factionname), "LSPD");
C:\Users\mattt\Desktop\New\gamemodes\arrp.pwn(585) : error 035: argument type mismatch (argument 1) C:\Users\mattt\Desktop\New\gamemodes\arrp.pwn(585) : error 035: argument type mismatch (argument 1) C:\Users\mattt\Desktop\New\gamemodes\arrp.pwn(589) : error 035: argument type mismatch (argument 1) C:\Users\mattt\Desktop\New\gamemodes\arrp.pwn(589) : error 035: argument type mismatch (argument 1) C:\Users\mattt\Desktop\New\gamemodes\arrp.pwn(589) : error 017: undefined symbol "FBI" C:\Users\mattt\Desktop\New\gamemodes\arrp.pwn(589) : fatal error 107: too many error messages on one line
new Factionname;
new Factionname[32];
new
Factionname[25];
switch(PlayerInfo[playerid][Faction])
{
case 1: Factionname = "LSPD";
case 2: Factionname = "FBI";
case 3: Factionname = "S.W.A.T";
case 4: Factionname = "G5Security";
case 5: Factionname = "EMT";
case 6: Factionname = "SanNews";
}
error 006: must be assigned to an array
Stats[3] = Factionname;
new Stats[21], string[150];
format(Stats, 21, "%s", Factionname);
new Factionname[25]; switch(PlayerInfo[playerid][Faction]) { case 1: Factionname = "LSPD"; case 2: Factionname = "FBI"; case 3: Factionname = "S.W.A.T"; case 4: Factionname = "G5Security"; case 5: Factionname = "EMT"; case 6: Factionname = "SanNews"; } new Stats[5], string[150]; Stats[0] = PlayerInfo[playerid][Cash]; Stats[1] = PlayerInfo[playerid][Kills]; Stats[2] = PlayerInfo[playerid][Deaths]; Stats[3] = Factionname; Stats[4] = PlayerInfo[playerid][Factionrank];
new Stats[6], string[150]; Stats[0] = PlayerInfo[playerid][Cash]; Stats[1] = PlayerInfo[playerid][Kills]; Stats[2] = PlayerInfo[playerid][Deaths]; Stats[3] = Factionname[24]; Stats[4] = PlayerInfo[playerid][Factionrank]; Stats[5] = PlayerInfo[playerid][Bankdeposit]; format(string, sizeof(string), "Account: Cash: %d || Kills: %d || Deaths: %d || Faction: %d || Faction Rank: %d || Bank Balance: %d", Stats[0], Stats[1], Stats[2], Stats[3], Stats[4], Stats[5]); SendClientMessage(playerid, COLOUR_YELLOW, string);