BigETI

What the..

Jun 11th, 2011
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. <BigETI> why do you check a string for integer?
  2. <BigETI> and how did you store the var/define Bombing?
  3. <Ironboy500[TW]> nvm
  4. <Ironboy500[TW]> already fixed using strcmp
  5. <BigETI> hmm well what was the use of it?
  6. <Ironboy500[TW]> checking if mission is Bombing/Race/Team Race/TDM/Vehicle Stealing
  7. <BigETI> well then using strings for it is useless
  8. <BigETI> I define my mission types with numbers
  9. <Ironboy500[TW]> I do it too
  10. <BigETI> k but still you're telling me that you checked the variable with strcmp
  11. <BigETI> even when you are using numbers so it's unnecesarry to check with strcmp since it's only needed for strings
  12. <Ironboy500[TW]> I'm using it here
  13. <Ironboy500[TW]> if(GetPlayerTeam(playerid) == 1 && strcmp(MissionType, "DM", true) == 0) SetPlayerColor(playerid, 0x8B0000FF);
  14. <Ironboy500[TW]> if(GetPlayerTeam(playerid) == 2 && strcmp(MissionType, "DM", true) == 0) SetPlayerColor(playerid, 0x008000FF);
  15. <Ironboy500[TW]> so it won't set red color in races.
  16. <Ironboy500[TW]> it's under OnPlayerSpawn
  17. <BigETI> omg
  18. <Ironboy500[TW]> ?
  19. <BigETI> use integers lmao
  20. <BigETI> for check :D
  21. <Ironboy500[TW]> so I'll do if(GetPlayerTeam(playerid) == 2 && MissionID != 0 && MissionID != 25 && MisssionID != 45 && MissionID !=45)
  22. <Ironboy500[TW]> not really.
  23. <BigETI> ...
  24. <BigETI> mine is like if(InfoTDM[TDMMapID][TDMMissionID] == gungametdm)
  25. <BigETI> no strings
  26. <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