22.07.2011, 21:21
I have this piece of code:
and i cant understand why im getting these errors:
Thanks for the help
Код:
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