Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <BigETI> why do you check a string for integer?
- <BigETI> and how did you store the var/define Bombing?
- <Ironboy500[TW]> nvm
- <Ironboy500[TW]> already fixed using strcmp
- <BigETI> hmm well what was the use of it?
- <Ironboy500[TW]> checking if mission is Bombing/Race/Team Race/TDM/Vehicle Stealing
- <BigETI> well then using strings for it is useless
- <BigETI> I define my mission types with numbers
- <Ironboy500[TW]> I do it too
- <BigETI> k but still you're telling me that you checked the variable with strcmp
- <BigETI> even when you are using numbers so it's unnecesarry to check with strcmp since it's only needed for strings
- <Ironboy500[TW]> I'm using it here
- <Ironboy500[TW]> if(GetPlayerTeam(playerid) == 1 && strcmp(MissionType, "DM", true) == 0) SetPlayerColor(playerid, 0x8B0000FF);
- <Ironboy500[TW]> if(GetPlayerTeam(playerid) == 2 && strcmp(MissionType, "DM", true) == 0) SetPlayerColor(playerid, 0x008000FF);
- <Ironboy500[TW]> so it won't set red color in races.
- <Ironboy500[TW]> it's under OnPlayerSpawn
- <BigETI> omg
- <Ironboy500[TW]> ?
- <BigETI> use integers lmao
- <BigETI> for check :D
- <Ironboy500[TW]> so I'll do if(GetPlayerTeam(playerid) == 2 && MissionID != 0 && MissionID != 25 && MisssionID != 45 && MissionID !=45)
- <Ironboy500[TW]> not really.
- <BigETI> ...
- <BigETI> mine is like if(InfoTDM[TDMMapID][TDMMissionID] == gungametdm)
- <BigETI> no strings
- <BigETI> if you start to check for everythings string so the server could loose a huge amount of resources
Advertisement
Add Comment
Please, Sign In to add comment